From d4759f0dbb140623a60536983584911d888dfb3a Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Mon, 5 Mar 2007 01:58:54 +0000 Subject: [PATCH] (logerror): Remove the permissions for others to view the game log file. --- src/lib/common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common/log.c b/src/lib/common/log.c index 2b9232e5..b7eda713 100644 --- a/src/lib/common/log.c +++ b/src/lib/common/log.c @@ -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);