commit 42353e1cf21c043d42bb1d4dec772405e10eedc8
parent f63b6422a7bd10abd78c52a254a4caee13825d26
Author: Jan Christoph Ebersbach <jceb@e-jc.de>
Date: Mon, 16 May 2016 21:47:17 +0200
Update pam_auth patch
Diffstat:
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/tools.suckless.org/slock/patches/slock-pam_auth.diff b/tools.suckless.org/slock/patches/slock-pam_auth.diff
@@ -30,7 +30,7 @@ index f93879e..e054879 100644
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\" -DHAVE_SHADOW_H
diff --git a/slock.c b/slock.c
-index c9cdee2..2abf467 100644
+index c9cdee2..6fdfe2f 100644
--- a/slock.c
+++ b/slock.c
@@ -17,6 +17,8 @@
@@ -123,3 +123,15 @@ index c9cdee2..2abf467 100644
#endif
if (running) {
XBell(dpy, 100);
+@@ -299,10 +344,10 @@ main(int argc, char **argv) {
+ dontkillme();
+ #endif
+
++#ifndef HAVE_BSD_AUTH
+ if (!getpwuid(getuid()))
+ die("no passwd entry for you\n");
+
+-#ifndef HAVE_BSD_AUTH
+ pws = getpw();
+ #endif
+