(add, disa, ef_open, logerror, main): Switch permissions to

standard defines instead of magic numbers to improve portability.
Also define WIN32 equivalents to the standard defines.
This commit is contained in:
Ron Koenderink 2007-03-10 16:29:51 +00:00
parent 32d62797d2
commit c97d79c0ee
6 changed files with 32 additions and 12 deletions

View file

@ -37,6 +37,7 @@
#if defined(_WIN32)
#include <io.h>
#endif
#include <sys/stat.h>
#include "commands.h"
#include "land.h"
@ -213,7 +214,7 @@ add(void)
natp->nat_rejects[i] = 0;
natp->nat_newstim = 0;
natp->nat_annotim = 0;
(void)creat(mailbox(buf, coun), 0660);
(void)creat(mailbox(buf, coun), S_IRWUG);
} else
pr("No special initializations done...\n");