applied Markus' patch to die in case /etc/passwd is unavailable
This commit is contained in:
parent
732d2b3bf5
commit
ede2935e10
1 changed files with 3 additions and 0 deletions
3
slock.c
3
slock.c
|
@ -228,6 +228,9 @@ main(int argc, char **argv) {
|
|||
else if(argc != 1)
|
||||
usage();
|
||||
|
||||
if(!getpwuid(getuid()))
|
||||
die("no passwd entry for you");
|
||||
|
||||
#ifndef HAVE_BSD_AUTH
|
||||
pws = get_password();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue