Commit 6265551a authored by Andrew Tridgell's avatar Andrew Tridgell

fixed perms on rsyncd log file

parent 958f3735
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment