X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Ffileio.c;h=af225c54a70aecc814408ecb312ab977808aac0d;hb=refs%2Fheads%2Fupstream;hp=38667868279b4837445f488bea02b211efa311db;hpb=0c6c51165ba278e2d4f44dfb195d4c820930b778;p=ircu2.10.12-pk.git diff --git a/ircd/fileio.c b/ircd/fileio.c index 3866786..af225c5 100644 --- a/ircd/fileio.c +++ b/ircd/fileio.c @@ -26,8 +26,9 @@ #include "fileio.h" #include "ircd_alloc.h" /* MyMalloc, MyFree */ +#include "ircd_log.h" /* assert */ -#include /* assert */ +/* #include -- Now using assert in ircd_log.h */ /* assert */ #include /* O_RDONLY, O_WRONLY, ... */ #include /* BUFSIZ, EOF */ #include /* struct stat */ @@ -67,11 +68,11 @@ FBFILE* fbopen(const char *filename, const char *mode) break; case 'w': openmode = O_WRONLY | O_CREAT | O_TRUNC; - pmode = S_IREAD | S_IWRITE; + pmode = S_IRUSR | S_IWUSR; break; case 'a': openmode = O_WRONLY | O_CREAT | O_APPEND; - pmode = S_IREAD | S_IWRITE; + pmode = S_IRUSR | S_IWUSR; break; case '+': openmode &= ~(O_RDONLY | O_WRONLY); @@ -84,7 +85,7 @@ FBFILE* fbopen(const char *filename, const char *mode) } /* * stop NFS hangs...most systems should be able to open a file in - * 3 seconds. -avalon (curtesy of wumpus) + * 3 seconds. -avalon (courtesy of wumpus) */ alarm(3); if ((fd = open(filename, openmode, pmode)) == -1) {