Hi,

666 seems too permissive for default pidfile permissions.

-i


Signed-off-by: Ian Wienand <[email protected]>

---
 libbb/pidfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libbb/pidfile.c b/libbb/pidfile.c
index a48dfc3..ef58159 100644
--- a/libbb/pidfile.c
+++ b/libbb/pidfile.c
@@ -23,7 +23,7 @@ void FAST_FUNC write_pidfile(const char *path)
        if (!path)
                return;
        /* we will overwrite stale pidfile */
-       pid_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0666);
+       pid_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0644);
        if (pid_fd < 0)
                return;
 
-- 
tg: (0f02b6a..) vmware/pidfile-permissions (depends on: vmkernel-main)
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to