aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-03-16 10:25:27 -0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-04-11 11:11:59 -0500
commit171e856ec8a0a64504b4b4a47ab6181d37fc3dbe (patch)
tree00f13553274573e2aea38498aec745bfb917c0e8 /src/rc
parentbeaa71df0ab2cfa61beba4be0303099aa6c75e6a (diff)
start-stop-daemon: Allow group read/write when creating output files
This allows for better interaction with inherited ACL entries. This fixes #84. X-Gentoo-Bug: 577362 X-Gentoo-Bug-URL: https://bugs.gentoo.org/577362
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/start-stop-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index 775bd7de..8ed3e923 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -1242,7 +1242,7 @@ int main(int argc, char **argv)
if (redirect_stdout) {
if ((stdout_fd = open(redirect_stdout,
O_WRONLY | O_CREAT | O_APPEND,
- S_IRUSR | S_IWUSR)) == -1)
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)) == -1)
eerrorx("%s: unable to open the logfile"
" for stdout `%s': %s",
applet, redirect_stdout, strerror(errno));
@@ -1250,7 +1250,7 @@ int main(int argc, char **argv)
if (redirect_stderr) {
if ((stderr_fd = open(redirect_stderr,
O_WRONLY | O_CREAT | O_APPEND,
- S_IRUSR | S_IWUSR)) == -1)
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)) == -1)
eerrorx("%s: unable to open the logfile"
" for stderr `%s': %s",
applet, redirect_stderr, strerror(errno));