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);