|
|
1.1 ! root 1: #include "uucp.h" ! 2: #include <sys/types.h> ! 3: #include <sys/stat.h> ! 4: ! 5: /******* ! 6: * anyread check if anybody can read ! 7: * return 0 ok: FAIL not ok ! 8: */ ! 9: ! 10: anyread(file) ! 11: char *file; ! 12: { ! 13: struct stat s; ! 14: ! 15: if (stat(file, &s) != 0) ! 16: /* for security check a non existant file is readable */ ! 17: return(0); ! 18: if (!(s.st_mode & ANYREAD)) ! 19: return(FAIL); ! 20: return(0); ! 21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.