summaryrefslogtreecommitdiffstats
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
parent11751929ec20f600f51f8bcae704acd5875b047b (diff)
downloadktown-master.tar.gz
ktown-master.tar.xz
Kscreenlocker: use PAM if available instead of a setuid root binaryHEADmaster
-rw-r--r--kde/build/kscreenlocker1
-rw-r--r--kde/post-install/kscreenlocker.post-install7
2 files changed, 5 insertions, 3 deletions
diff --git a/kde/build/kscreenlocker b/kde/build/kscreenlocker
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/kde/build/kscreenlocker
@@ -0,0 +1 @@
+2
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