From: Andrew Tridgell Date: Fri, 30 Oct 1998 23:03:08 +0000 (+0000) Subject: fixed perms on rsyncd log file X-Git-Tag: v2.2.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6265551a5a820b99e0b8a1ea5910fa013f93f9aa;p=thirdparty%2Frsync.git fixed perms on rsyncd log file --- diff --git a/log.c b/log.c index 30aca47e..c494805d 100644 --- a/log.c +++ b/log.c @@ -78,7 +78,9 @@ void log_open(void) /* optionally use a log file instead of syslog */ logf = lp_log_file(); if (logf && *logf) { + int old_umask = umask(077); logfile = fopen(logf, "a"); + umask(old_umask); return; }