[vdr] 09/11: shutdown-wrapper: use setuid, otherwise smbstatus will fail

Tobias Grimm tiber-guest at moszumanska.debian.org
Sun Feb 8 17:32:31 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 6bf4c6d2574ca258a4c01d8cca1ffa6a47b1d197
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