diff options
author | anselm@garbe.us <unknown> | 2012-04-15 11:58:16 +0200 |
---|---|---|
committer | anselm@garbe.us <unknown> | 2012-04-15 11:58:16 +0200 |
commit | 4b4fcca1bc3a05e0a4bb5453dfe6dbd84a54b071 (patch) | |
tree | ccd591e38fb0885a881b091129e53e26afc29217 | |
parent | c1507cd225a34ef69045cfc20519b16212dba8dd (diff) | |
download | slock-4b4fcca1bc3a05e0a4bb5453dfe6dbd84a54b071.tar.gz slock-4b4fcca1bc3a05e0a4bb5453dfe6dbd84a54b071.tar.xz |
added Ben's password placeholder entry kludge
-rw-r--r-- | slock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |