[vdr] 06/21: shutdown-wrapper: use setuid, otherwise smbstatus will fail
Tobias Grimm
tiber-guest at moszumanska.debian.org
Wed Mar 25 00:19:23 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 fb9d55aa8f3b6b06b393e9f0932817d070bdf515
Author: etobi <git at e-tobi.net>
Date: Sun Mar 22 12:54:13 2015 +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