aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2003-02-28 10:53:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2003-02-28 10:53:49 +0000
commit5283e32c823c36f7904691441c1241edde8ca7b1 (patch)
tree26a9a532aad98792f864a96104aa6c3793837ff9 /rcfile_y.y
parenta84e8bcb141f2b683e1bf20063cbf50245dfe583 (diff)
downloadfetchmail-5283e32c823c36f7904691441c1241edde8ca7b1.tar.gz
fetchmail-5283e32c823c36f7904691441c1241edde8ca7b1.tar.bz2
fetchmail-5283e32c823c36f7904691441c1241edde8ca7b1.zip
Before the IDLE patch.
svn path=/trunk/; revision=3792
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 3dac325b..bd5faa6d 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -428,14 +428,14 @@ int prc_filecheck(const char *pathname, const flag securecheck)
if (!securecheck) return PS_SUCCESS;
- if ((statbuf.st_mode & S_IFLNK) == S_IFLNK)
+ if (!S_ISREG(statbuf.st_mode))
{
- fprintf(stderr, GT_("File %s must not be a symbolic link.\n"), pathname);
+ fprintf(stderr, GT_("File %s must be a regular file.\n"), pathname);
return(PS_IOERR);
}
#ifndef __BEOS__
- if (statbuf.st_mode & ~(S_IFREG | S_IREAD | S_IWRITE | S_IEXEC | S_IXGRP))
+ if (statbuf.st_mode & (S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH | S_IXOTH))
{
fprintf(stderr, GT_("File %s must have no more than -rwx--x--- (0710) permissions.\n"),
pathname);