aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-20 19:51:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-20 19:51:19 +0000
commitecffe0455d9ed82fa5b41737c80b36a03e342fb9 (patch)
tree3068d8c8a7b11b669b94d1bbb2cfc1202e342133 /rcfile_y.y
parenteb1b8fb6779d71fbe8c23156d4773e56f7d2fe67 (diff)
downloadfetchmail-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.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 1c56cc96..57e47444 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -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);