X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/e804469b5b0975de34bae1e66c3e6371249d3ee7..0f4556f12c8f75078501c9d1338ae7648a97f975:/usr/src/usr.bin/uucp/anyread.c diff --git a/usr/src/usr.bin/uucp/anyread.c b/usr/src/usr.bin/uucp/anyread.c index 3cfa08d694..a0ba138214 100644 --- a/usr/src/usr.bin/uucp/anyread.c +++ b/usr/src/usr.bin/uucp/anyread.c @@ -1,9 +1,12 @@ -static char sccsid[] = "@(#)anyread.c 4.1 (Berkeley) 9/11/82"; +#ifndef lint +static char sccsid[] = "@(#)anyread.c 5.1 (Berkeley) 7/2/83"; +#endif #include "uucp.h" #include #include + /******* * anyread check if anybody can read * return 0 ok: FAIL not ok @@ -14,7 +17,7 @@ char *file; { struct stat s; - if (stat(file, &s) != 0) + if (stat(subfile(file), &s) != 0) /* for security check a non existant file is readable */ return(0); if (!(s.st_mode & ANYREAD))