diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-20 19:51:19 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-20 19:51:19 +0000 |
commit | ecffe0455d9ed82fa5b41737c80b36a03e342fb9 (patch) | |
tree | 3068d8c8a7b11b669b94d1bbb2cfc1202e342133 /rcfile_y.y | |
parent | eb1b8fb6779d71fbe8c23156d4773e56f7d2fe67 (diff) | |
download | fetchmail-ecffe0455d9ed82fa5b41737c80b36a03e342fb9.tar.gz fetchmail-ecffe0455d9ed82fa5b41737c80b36a03e342fb9.tar.bz2 fetchmail-ecffe0455d9ed82fa5b41737c80b36a03e342fb9.zip |
Correct return value for bad fuile permissions.
svn path=/trunk/; revision=2567
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -387,14 +387,14 @@ int prc_filecheck(const char *pathname, const flag securecheck) if ((statbuf.st_mode & S_IFLNK) == S_IFLNK) { fprintf(stderr, "File %s must not be a symbolic link.\n", pathname); - return(PS_AUTHFAIL); + return(PS_IOERR); } if (statbuf.st_mode & ~(S_IFREG | S_IREAD | S_IWRITE | S_IEXEC | S_IXGRP)) { fprintf(stderr, "File %s must have no more than -rwx--x--- (0710) permissions.\n", pathname); - return(PS_AUTHFAIL); + return(PS_IOERR); } #ifdef HAVE_GETEUID @@ -404,7 +404,7 @@ int prc_filecheck(const char *pathname, const flag securecheck) #endif /* HAVE_GETEUID */ { fprintf(stderr, "File %s must be owned by you.\n", pathname); - return(PS_AUTHFAIL); + return(PS_IOERR); } #endif return(PS_SUCCESS); |