(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:
parent
32d62797d2
commit
c97d79c0ee
6 changed files with 32 additions and 12 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue