aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-27 22:05:34 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-27 22:05:34 +0000
commita893ecee376aeac0c3e6016ba4693c1da9d4d86f (patch)
tree659d95644ccd065fc05e29236528a2a15e8007e6
parent7bca39e2eae4950c7ed9b7d426cb4b726ddc9af0 (diff)
downloadbusybox-w32-a893ecee376aeac0c3e6016ba4693c1da9d4d86f.tar.gz
busybox-w32-a893ecee376aeac0c3e6016ba4693c1da9d4d86f.tar.bz2
busybox-w32-a893ecee376aeac0c3e6016ba4693c1da9d4d86f.zip
pidfile creation mode set to 0666 (umask affects it as usual)
git-svn-id: svn://busybox.net/trunk/busybox@18256 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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)
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 */