BSD 3 development
[unix-history] / usr / src / cmd / uucp / anyread.c
index 0df24bc..bdf0ceb 100644 (file)
@@ -13,7 +13,8 @@ char *file;
        struct stat s;
 
        if (stat(file, &s) != 0)
        struct stat s;
 
        if (stat(file, &s) != 0)
-               return(FAIL);
+               /* for security check a non existant file is readable */
+               return(0);
        if (!(s.st_mode & ANYREAD))
                return(FAIL);
        return(0);
        if (!(s.st_mode & ANYREAD))
                return(FAIL);
        return(0);