]> Pileus Git - ~andy/fetchmail/blobdiff - rcfile_y.y
Before the IDLE patch.
[~andy/fetchmail] / rcfile_y.y
index 3dac325bbb3ebe2dfcec672806201654a3175a92..bd5faa6dc117a585209e5c0b41c54c94972c3d9c 100644 (file)
@@ -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);