From a893ecee376aeac0c3e6016ba4693c1da9d4d86f Mon Sep 17 00:00:00 2001 From: vda Date: Tue, 27 Mar 2007 22:05:34 +0000 Subject: 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 --- libbb/pidfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3-55-g6feb