[neon/3rdparty/sddm/Neon/release-lts] debian: Fix lintian warning command-with-path-in-maintainer-script in postrm.

Aurélien COUDERC null at kde.org
Tue Mar 9 12:45:42 GMT 2021


Git commit 6e4507d68a93a53fd38a0905c9291bae21e13096 by Aurélien COUDERC.
Committed on 06/11/2020 at 21:48.
Pushed by sitter into branch 'Neon/release-lts'.

Fix lintian warning command-with-path-in-maintainer-script in postrm.

M  +1    -0    debian/changelog
M  +2    -2    debian/sddm.postrm

https://invent.kde.org/neon/3rdparty/sddm/commit/6e4507d68a93a53fd38a0905c9291bae21e13096

diff --git a/debian/changelog b/debian/changelog
index e37e1ce..d84f5b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ sddm (0.19.0-1) UNRELEASED; urgency=medium
 
   * New upstream release (0.19.0):
     - Fix X not having access control on startup (fixes CVE-2020-28049)
+  * Fix lintian warning command-with-path-in-maintainer-script in postrm.
 
  -- Aurélien COUDERC <coucouf at debian.org>  Wed, 04 Nov 2020 17:34:00 +0100
 
diff --git a/debian/sddm.postrm b/debian/sddm.postrm
index 2eba6bf..0bd7498 100644
--- a/debian/sddm.postrm
+++ b/debian/sddm.postrm
@@ -16,13 +16,13 @@ case "$1" in
         if [ -f /var/log/sddm.log ]; then rm /var/log/sddm.log; fi
 
         if getent passwd sddm >/dev/null; then
-            if [ -x /usr/sbin/deluser ]; then
+            if which deluser > /dev/null; then
                 deluser --system sddm >&2 ||
                     echo "Could not remove sddm user." >&2
             fi
         fi
         if getent group sddm >/dev/null; then
-            if [ -x /usr/sbin/delgroup ]; then
+            if which delgroup > /dev/null; then
                 delgroup --system sddm >&2 ||
                     echo "Could not remove sddm group." >&2
             fi



More information about the Neon-commits mailing list