Browse Source

applied Markus' patch to die in case /etc/passwd is unavailable

master
Anselm R Garbe 14 years ago
parent
commit
ede2935e10
  1. 3
      slock.c

3
slock.c

@ -228,6 +228,9 @@ main(int argc, char **argv) {
else if(argc != 1) else if(argc != 1)
usage(); usage();
if(!getpwuid(getuid()))
die("no passwd entry for you");
#ifndef HAVE_BSD_AUTH #ifndef HAVE_BSD_AUTH
pws = get_password(); pws = get_password();
#endif #endif

Loading…
Cancel
Save