diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-02 11:23:49 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-02 11:23:49 +0000 |
commit | ffb0a8fd2045bb8f7f097905cb9d0814803c6060 (patch) | |
tree | c012cdeff13f07176058ed70168292246f722815 /src/supervision/s6-svscan.c | |
parent | 8873c303fefaed17f6777989f929612a99675a00 (diff) | |
download | s6-ffb0a8fd2045bb8f7f097905cb9d0814803c6060.tar.xz |
Fix lock permissions
Diffstat (limited to 'src/supervision/s6-svscan.c')
-rw-r--r-- | src/supervision/s6-svscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-svscan.c b/src/supervision/s6-svscan.c index 1d17a3a..0a3c286 100644 --- a/src/supervision/s6-svscan.c +++ b/src/supervision/s6-svscan.c @@ -497,7 +497,7 @@ static inline int control_init (void) strerr_dief1x(100, S6_SVSCAN_CTLDIR " exists and is not a directory") ; } - fdlck = open(LCK, O_WRONLY | O_NONBLOCK | O_CREAT | O_CLOEXEC, 0600) ; + fdlck = open(LCK, O_WRONLY | O_NONBLOCK | O_CREAT | O_CLOEXEC, 0644) ; if (fdlck < 0) strerr_diefu1sys(111, "open " LCK) ; r = fd_lock(fdlck, 1, 1) ; if (r < 0) strerr_diefu1sys(111, "lock " LCK) ; |