X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Ffileio.c;h=af225c54a70aecc814408ecb312ab977808aac0d;hb=a36ad5e29241b0c89379947b13887cb6930ef3e0;hp=2684a3808d037376fb14f59237de708ab397eabc;hpb=fc21303989a07d6091ef684150db29c49f682614;p=ircu2.10.12-pk.git diff --git a/ircd/fileio.c b/ircd/fileio.c index 2684a38..af225c5 100644 --- a/ircd/fileio.c +++ b/ircd/fileio.c @@ -68,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); @@ -85,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) {