mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 12:05:51 +00:00
added Ben's password placeholder entry kludge
This commit is contained in:
parent
c1507cd225
commit
4b4fcca1bc
2
slock.c
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user