diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-27 22:05:34 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-27 22:05:34 +0000 |
commit | 6a5598c2bc3ca3631372f3a343bf2f22ae6791fa (patch) | |
tree | 659d95644ccd065fc05e29236528a2a15e8007e6 /libbb/pidfile.c | |
parent | ebf48bb80cceaf6a01ff5e7a3d4be1106fc82869 (diff) | |
download | busybox-w32-6a5598c2bc3ca3631372f3a343bf2f22ae6791fa.tar.gz busybox-w32-6a5598c2bc3ca3631372f3a343bf2f22ae6791fa.tar.bz2 busybox-w32-6a5598c2bc3ca3631372f3a343bf2f22ae6791fa.zip |
pidfile creation mode set to 0666 (umask affects it as usual)
Diffstat (limited to 'libbb/pidfile.c')
-rw-r--r-- | libbb/pidfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/pidfile.c b/libbb/pidfile.c index 41565b694..79c3108fc 100644 --- a/libbb/pidfile.c +++ b/libbb/pidfile.c | |||
@@ -16,7 +16,7 @@ int write_pidfile(const char *path) | |||
16 | char buf[sizeof(int)*3 + 2]; | 16 | char buf[sizeof(int)*3 + 2]; |
17 | 17 | ||
18 | /* we will overwrite stale pidfile */ | 18 | /* we will overwrite stale pidfile */ |
19 | pid_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC); | 19 | pid_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0666); |
20 | if (pid_fd < 0) | 20 | if (pid_fd < 0) |
21 | return 0; | 21 | return 0; |
22 | /* few bytes larger, but doesn't use stdio */ | 22 | /* few bytes larger, but doesn't use stdio */ |