#include "fileio.h"
#include "ircd_alloc.h" /* MyMalloc, MyFree */
+#include "ircd_log.h" /* assert */
-#include <assert.h> /* assert */
+/* #include <assert.h> -- Now using assert in ircd_log.h */ /* assert */
#include <fcntl.h> /* O_RDONLY, O_WRONLY, ... */
#include <stdio.h> /* BUFSIZ, EOF */
#include <sys/stat.h> /* struct stat */
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);
}
/*
* 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) {