summaryrefslogtreecommitdiffstats
path: root/kde/post-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-02-17 12:25:12 +0100
committer Eric Hameleers <alien@slackware.com>2020-02-17 12:25:12 +0100
commit877889508453aff085b8c65e1fd5c16b60ccf25d (patch)
treee3860d4be73228e52b1a5418a98eab29a7d26a78 /kde/post-install
parent11751929ec20f600f51f8bcae704acd5875b047b (diff)
downloadktown-877889508453aff085b8c65e1fd5c16b60ccf25d.tar.gz
ktown-877889508453aff085b8c65e1fd5c16b60ccf25d.tar.xz
Kscreenlocker: use PAM if available instead of a setuid root binary
Diffstat (limited to 'kde/post-install')
-rw-r--r--kde/post-install/kscreenlocker.post-install7
1 files changed, 4 insertions, 3 deletions
diff --git a/kde/post-install/kscreenlocker.post-install b/kde/post-install/kscreenlocker.post-install
index 6d9b558..203cff0 100644
--- a/kde/post-install/kscreenlocker.post-install
+++ b/kde/post-install/kscreenlocker.post-install
@@ -1,3 +1,4 @@
-# For shadow, this file needs to be setuid root just like the KDE4 version:
-chmod +s $PKG/usr/lib$LIBDIRSUFFIX/kcheckpass
-
+if [ "$SLACKPAM" == "no" ]; then
+ # For shadow, this file needs to be setuid root:
+ chmod +s $PKG/usr/lib$LIBDIRSUFFIX/kcheckpass
+fi