aboutsummaryrefslogtreecommitdiff
path: root/debian/gnunet-server.postrm
diff options
context:
space:
mode:
authorBertrand Marc <beberking@gmail.com>2012-05-05 18:06:34 +0200
committerBertrand Marc <beberking@gmail.com>2012-05-05 18:06:34 +0200
commit2d3dbb8e5768198b839c8337dab439d29e89d883 (patch)
tree46def5e25e3d95a5693aacfa353e2e7fa59a74d8 /debian/gnunet-server.postrm
parent6d4016b054fbef01fecc0b5d6ae23c5e82dfb7ae (diff)
Use dpkg-statoverride to set and remove setuid permissions.
Diffstat (limited to 'debian/gnunet-server.postrm')
-rw-r--r--debian/gnunet-server.postrm14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/gnunet-server.postrm b/debian/gnunet-server.postrm
index 038a6a7..554ea0c 100644
--- a/debian/gnunet-server.postrm
+++ b/debian/gnunet-server.postrm
@@ -8,6 +8,20 @@ case "${1}" in
_GROUPNAME="gnunet"
GNUNETDNS_GROUP="gnunetdns"
+ for i in /usr/bin/gnunet-helper-exit \
+ /usr/bin/gnunet-helper-nat-client \
+ /usr/bin/gnunet-helper-nat-server \
+ /usr/bin/gnunet-helper-transport-wlan \
+ /usr/bin/gnunet-helper-vpn \
+ /usr/bin/gnunet-helper-dns \
+ /usr/bin/gnunet-service-dns
+ do
+ if dpkg-statoverride --list $i >/dev/null 2>&1
+ then
+ dpkg-statoverride --remove $i
+ fi
+ done
+
if [ -x /usr/sbin/deluser ]
then
deluser --quiet --system ${_USERNAME}