This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b1b7519d0ae5ac75497804f18239ab1bd8c32c9c

commit b1b7519d0ae5ac75497804f18239ab1bd8c32c9c
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Jan 21 10:47:43 2021 +0100

    s-s-d: Open the --output file in append mode
    
    Otherwise we will overwrite any pre-existing log file.
    
    Fixes: commit 2eb9e88858e7991c293008f5252e6ee7693e3ce2
---
 utils/start-stop-daemon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index d16f0ed26..98494b86d 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -2593,7 +2593,7 @@ do_start(int argc, char **argv)
                        fatale("unable to open '%s'", "/dev/null");
        }
        if (background && output_io) {
-               output_fd = open(output_io, O_CREAT | O_WRONLY, 0664);
+               output_fd = open(output_io, O_CREAT | O_WRONLY | O_APPEND, 
0664);
                if (output_fd < 0)
                        fatale("unable to open '%s'", output_io);
        }

-- 
Dpkg.Org's dpkg

Reply via email to