[vdr] 03/05: shutdown-wrapper: use setuid, otherwise smbstatus will fail

Tobias Grimm tiber-guest at moszumanska.debian.org
Sun Feb 8 20:57:52 UTC 2015


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

tiber-guest pushed a commit to branch e-tobi
in repository vdr.

commit 37e9c765dc10c26df181745aaa129705ced1a49c
Author: Lars Hanisch <dvb at flensrocker.de>
Date:   Wed Nov 27 22:51:09 2013 +0100

    shutdown-wrapper: use setuid, otherwise smbstatus will fail
---
 debian/vdr-shutdown-wrapper.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/vdr-shutdown-wrapper.c b/debian/vdr-shutdown-wrapper.c
index e10f177..0f5372b 100644
--- a/debian/vdr-shutdown-wrapper.c
+++ b/debian/vdr-shutdown-wrapper.c
@@ -1,3 +1,6 @@
+#include <unistd.h>
+
 int main (int argc, char *argv[]) {
+   setuid(0);
    return execv("/usr/lib/vdr/vdr-shutdown", argv);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr.git



More information about the pkg-vdr-dvb-changes mailing list