(logerror): Remove the permissions for others to view the game log file.
This commit is contained in:
parent
3afb3925a2
commit
d4759f0dbb
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ logerror(char *format, ...)
|
||||||
time(&now);
|
time(&now);
|
||||||
memcpy(buf, ctime(&now), ctime_len);
|
memcpy(buf, ctime(&now), ctime_len);
|
||||||
buf[ctime_len] = ' ';
|
buf[ctime_len] = ' ';
|
||||||
if ((logf = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0666)) < 0)
|
if ((logf = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0660)) < 0)
|
||||||
return;
|
return;
|
||||||
write(logf, buf, strlen(buf));
|
write(logf, buf, strlen(buf));
|
||||||
close(logf);
|
close(logf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue