X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6265551a5a820b99e0b8a1ea5910fa013f93f9aa..e803090538b1f5e432226438d4e804fea40b7eea:/log.c 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;