Changes to fix the compile for FreeBSD 5.3.
[ircu2.10.12-pk.git] / ircd / fileio.c
index 2684a3808d037376fb14f59237de708ab397eabc..9eef0a57a3978960e4e46b1f9daf1e6f92467511 100644 (file)
@@ -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);