From 4b4fcca1bc3a05e0a4bb5453dfe6dbd84a54b071 Mon Sep 17 00:00:00 2001 From: "anselm@garbe.us" Date: Sun, 15 Apr 2012 11:58:16 +0200 Subject: [PATCH] added Ben's password placeholder entry kludge --- slock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slock.c b/slock.c index 12b8d4d..320ed2b 100644 --- a/slock.c +++ b/slock.c @@ -56,7 +56,7 @@ getpw(void) { /* only run as root */ 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)