[hackers] [slock] added Ben's password placeholder entry kludge || anselm

From: <hg_AT_suckless.org>
Date: Sun, 15 Apr 2012 11:58:18 +0200 (CEST)

changeset: 52:639240c84cb2
tag: tip
user: anselm_AT_garbe.us
date: Sun Apr 15 11:58:16 2012 +0200
files: slock.c
description:
added Ben's password placeholder entry kludge


diff -r 0eade055cef0 -r 639240c84cb2 slock.c
--- a/slock.c Sat Mar 17 18:03:25 2012 +0100
+++ b/slock.c Sun Apr 15 11:58:16 2012 +0200
_AT_@ -56,7 +56,7 @@
         rval = pw->pw_passwd;
 
 #if HAVE_SHADOW_H
- {
+ if (strlen(rval) >= 1) { /* kludge, assumes pw placeholder entry has len >= 1 */
                 struct spwd *sp;
                 sp = getspnam(getenv("USER"));
                 if(!sp)
Received on Sun Apr 15 2012 - 11:58:18 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 15 2012 - 12:00:23 CEST