aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
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);