From: Andrew Tridgell Date: Fri, 30 Oct 1998 23:50:12 +0000 (+0000) Subject: use the orig_umask when choosing perms for the log file. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e803090538b1f5e432226438d4e804fea40b7eea use the orig_umask when choosing perms for the log file. --- 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;