Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6265551
)
use the orig_umask when choosing perms for the log file.
author
Andrew Tridgell
<tridge@samba.org>
Fri, 30 Oct 1998 23:50:12 +0000
(23:50 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 30 Oct 1998 23:50:12 +0000
(23:50 +0000)
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
c494805
..
32ae355
100644
(file)
--- 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;