Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed perms on rsyncd log file
[rsync/rsync.git]
/
log.c
diff --git
a/log.c
b/log.c
index
30aca47
..
c494805
100644
(file)
--- 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;
}