Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
e8030905
Commit
e8030905
authored
Oct 30, 1998
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the orig_umask when choosing perms for the log file.
parent
6265551a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
log.c
log.c
+2
-1
No files found.
log.c
View file @
e8030905
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment