aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranselm@garbe.us <unknown>2012-04-15 11:58:16 +0200
committeranselm@garbe.us <unknown>2012-04-15 11:58:16 +0200
commit4b4fcca1bc3a05e0a4bb5453dfe6dbd84a54b071 (patch)
treeccd591e38fb0885a881b091129e53e26afc29217
parentc1507cd225a34ef69045cfc20519b16212dba8dd (diff)
added Ben's password placeholder entry kludge
-rw-r--r--slock.c2
1 files changed, 1 insertions, 1 deletions
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 */
56 rval = pw->pw_passwd; 56 rval = pw->pw_passwd;
57 57
58#if HAVE_SHADOW_H 58#if HAVE_SHADOW_H
59 { 59 if (strlen(rval) >= 1) { /* kludge, assumes pw placeholder entry has len >= 1 */
60 struct spwd *sp; 60 struct spwd *sp;
61 sp = getspnam(getenv("USER")); 61 sp = getspnam(getenv("USER"));
62 if(!sp) 62 if(!sp)