(logerror): Remove the permissions for others to view the game log file.

This commit is contained in:
Ron Koenderink 2007-03-05 01:58:54 +00:00
parent 3afb3925a2
commit d4759f0dbb

View file

@ -93,7 +93,7 @@ logerror(char *format, ...)
time(&now);
memcpy(buf, ctime(&now), 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;
write(logf, buf, strlen(buf));
close(logf);