projects
/
suckless
/
slock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1507cd
)
added Ben's password placeholder entry kludge
author
anselm@garbe.us
<unknown>
Sun, 15 Apr 2012 09:58:16 +0000
(11:58 +0200)
committer
anselm@garbe.us
<unknown>
Sun, 15 Apr 2012 09:58:16 +0000
(11:58 +0200)
slock.c
patch
|
blob
|
history
diff --git
a/slock.c
b/slock.c
index 12b8d4dd49fe31ba1678e0680873b457cbbf39af..320ed2b4e3a40272fc37d0ce200d51b11e51ae55 100644
(file)
--- 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)