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

This commit is contained in:
Anselm R Garbe 2011-04-21 08:22:47 +00:00
parent 732d2b3bf5
commit ede2935e10
1 changed files with 3 additions and 0 deletions

View File

@ -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