diff options
Diffstat (limited to 'slock.c')
-rw-r--r-- | slock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |