projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
uucp
/
anyread.c
diff --git
a/usr/src/cmd/uucp/anyread.c
b/usr/src/cmd/uucp/anyread.c
index
0df24bc
..
bdf0ceb
100644
(file)
--- a/
usr/src/cmd/uucp/anyread.c
+++ b/
usr/src/cmd/uucp/anyread.c
@@
-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);