(main): Enable group file permissions.
Makes the group file permissions consist with the rest of the server.
This commit is contained in:
parent
d640c8cc4e
commit
32d62797d2
1 changed files with 5 additions and 5 deletions
|
@ -117,7 +117,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
ef_init();
|
ef_init();
|
||||||
|
|
||||||
if (mkdir(gamedir, 0750) < 0 && errno != EEXIST) {
|
if (mkdir(gamedir, 0770) < 0 && errno != EEXIST) {
|
||||||
perror(gamedir);
|
perror(gamedir);
|
||||||
printf("Can't make game directory\n");
|
printf("Can't make game directory\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -171,17 +171,17 @@ main(int argc, char *argv[])
|
||||||
putrealm(&realm);
|
putrealm(&realm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mkdir(teldir, 0750) < 0 && errno != EEXIST) {
|
if (mkdir(teldir, 0770) < 0 && errno != EEXIST) {
|
||||||
perror(teldir);
|
perror(teldir);
|
||||||
printf("Can't make telegram directory\n");
|
printf("Can't make telegram directory\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
for (x = MAXNOC - 1; x >= 0; x--) {
|
for (x = MAXNOC - 1; x >= 0; x--) {
|
||||||
filename = mailbox(buf, x);
|
filename = mailbox(buf, x);
|
||||||
close(creat(filename, 0600));
|
close(creat(filename, 0660));
|
||||||
}
|
}
|
||||||
close(creat(timestampfil, 0600));
|
close(creat(timestampfil, 0660));
|
||||||
close(creat(annfil, 0600));
|
close(creat(annfil, 0660));
|
||||||
|
|
||||||
/* create a zero-filled sector file */
|
/* create a zero-filled sector file */
|
||||||
memset(&sct, 0, sizeof(sct));
|
memset(&sct, 0, sizeof(sct));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue