From e803090538b1f5e432226438d4e804fea40b7eea Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 30 Oct 1998 23:50:12 +0000 Subject: [PATCH] use the orig_umask when choosing perms for the log file. --- log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log.c b/log.c index c494805d..32ae3552 100644 --- a/log.c +++ b/log.c @@ -78,7 +78,8 @@ void log_open(void) /* optionally use a log file instead of syslog */ logf = lp_log_file(); if (logf && *logf) { - int old_umask = umask(077); + extern int orig_umask; + int old_umask = umask(022 | orig_umask); logfile = fopen(logf, "a"); umask(old_umask); return; -- 2.34.1