fixed perms on rsyncd log file

This commit is contained in:
Andrew Tridgell
1998-10-30 23:03:08 +00:00
parent 958f373550
commit 6265551a5a

2
log.c
View File

@@ -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;
}