[wiki] [sites] Update pam_auth patch || Jan Christoph Ebersbach

From: <git_AT_suckless.org>
Date: Mon, 16 May 2016 21:47:30 +0200

commit 42353e1cf21c043d42bb1d4dec772405e10eedc8
Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
Date: Mon May 16 21:47:17 2016 +0200

    Update pam_auth patch

diff --git a/tools.suckless.org/slock/patches/slock-pam_auth.diff b/tools.suckless.org/slock/patches/slock-pam_auth.diff
index 7cc1983..99df9c0 100644
--- a/tools.suckless.org/slock/patches/slock-pam_auth.diff
+++ b/tools.suckless.org/slock/patches/slock-pam_auth.diff
_AT_@ -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
 _AT_@ -17,6 +17,8 @@
_AT_@ -123,3 +123,15 @@ index c9cdee2..2abf467 100644
  #endif
                                  if (running) {
                                          XBell(dpy, 100);
+_AT_@ -299,10 +344,10 @@ main(int argc, char **argv) {
+ dontkillme();
+ #endif
+
++#ifndef HAVE_BSD_AUTH
+ if (!getpwuid(getuid()))
+ die("no passwd entry for you
");
+
+-#ifndef HAVE_BSD_AUTH
+ pws = getpw();
+ #endif
+
Received on Mon May 16 2016 - 21:47:30 CEST

This archive was generated by hypermail 2.3.0 : Mon May 16 2016 - 21:48:14 CEST