gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: debian: Do not remove users/groups in po


From: gnunet
Subject: [gnunet] branch master updated: debian: Do not remove users/groups in postrm
Date: Sat, 31 Jul 2021 16:52:09 +0200

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

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 9b3442d2f debian:  Do not remove users/groups in postrm
9b3442d2f is described below

commit 9b3442d2f84759594dbec7f8231d750fad649372
Author: Florian Dold <florian@dold.me>
AuthorDate: Sat Jul 31 16:47:33 2021 +0200

    debian:  Do not remove users/groups in postrm
    
    Doing so is dangerous (UID/GID recycling!) from a security point of
    view.  It should *never* be done automatically.
---
 debian/changelog     |  6 ++++++
 debian/gnunet.postrm | 24 ------------------------
 2 files changed, 6 insertions(+), 24 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 516530fbb..f8cb6ac6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gnunet (0.14.1-10) unstable; urgency=low
+
+  * Do not remove users/groups in postrm.
+
+ -- Florian Dold <florian@dold.me>  Sat, 31 Jul 2021 16:46:13 +0200
+
 gnunet (0.14.1-9) unstable; urgency=low
 
   * Fix some bugs in configuration file parsing.
diff --git a/debian/gnunet.postrm b/debian/gnunet.postrm
index 2c3887202..93dac87d1 100644
--- a/debian/gnunet.postrm
+++ b/debian/gnunet.postrm
@@ -2,19 +2,6 @@
 
 set -e
 
-pathfind() {
-       OLDIFS="$IFS"
-       IFS=:
-       for p in $PATH; do
-               if [ -x "$p/$*" ]; then
-                       IFS="$OLDIFS"
-                       return 0
-               fi
-       done
-       IFS="$OLDIFS"
-       return 1
-}
-
 remove_gns() {
        # abort if /etc/nsswitch.conf does not exist
        if ! [ -e /etc/nsswitch.conf ]; then
@@ -66,17 +53,6 @@ case "${1}" in
                        remove_gns
                fi
 
-               if pathfind deluser
-               then
-                       deluser --quiet --system ${_USERNAME} || true
-               fi
-
-               if pathfind delgroup
-               then
-                       delgroup --quiet --system --only-if-empty ${_GROUPNAME} 
|| true
-                       delgroup --quiet --system --only-if-empty 
${GNUNETDNS_GROUP} || true
-               fi
-
                rm -rf /var/log/gnunet.log /var/lib/gnunet /etc/default/gnunet
                ;;
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]