From ecffe0455d9ed82fa5b41737c80b36a03e342fb9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 20 Sep 1999 19:51:19 +0000 Subject: Correct return value for bad fuile permissions. svn path=/trunk/; revision=2567 --- rcfile_y.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rcfile_y.y') 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); -- cgit v1.2.3