aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-27 22:05:34 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-27 22:05:34 +0000
commit6a5598c2bc3ca3631372f3a343bf2f22ae6791fa (patch)
tree659d95644ccd065fc05e29236528a2a15e8007e6 /libbb
parentebf48bb80cceaf6a01ff5e7a3d4be1106fc82869 (diff)
downloadbusybox-6a5598c2bc3ca3631372f3a343bf2f22ae6791fa.tar.gz
pidfile creation mode set to 0666 (umask affects it as usual)
Diffstat (limited to 'libbb')
-rw-r--r--libbb/pidfile.c2
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)
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 */