projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf48bb
)
pidfile creation mode set to 0666 (umask affects it as usual)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Mar 2007 22:05:34 +0000
(22:05 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Mar 2007 22:05:34 +0000
(22:05 -0000)
libbb/pidfile.c
patch
|
blob
|
history
diff --git
a/libbb/pidfile.c
b/libbb/pidfile.c
index 41565b6947b3303cc9a7b344b47081b02fa707de..79c3108fc20c1f9ff2361fc937e624333c9d231b 100644
(file)
--- a/
libbb/pidfile.c
+++ b/
libbb/pidfile.c
@@
-16,7
+16,7
@@
int write_pidfile(const char *path)
char buf[sizeof(int)*3 + 2];
/* we will overwrite stale pidfile */
- pid_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC);
+ pid_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC
, 0666
);
if (pid_fd < 0)
return 0;
/* few bytes larger, but doesn't use stdio */