]> git.pond.sub.org Git - empserver/commitdiff
(logerror): Remove the permissions for others to view the game log file.
authorRon Koenderink <rkoenderink@yahoo.ca>
Mon, 5 Mar 2007 01:58:54 +0000 (01:58 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Mon, 5 Mar 2007 01:58:54 +0000 (01:58 +0000)
src/lib/common/log.c

index 2b9232e5f9630fdce038c47ca45aef6cf84b36ee..b7eda713efe96a7f51839ced8636b226128947e4 100644 (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);