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

View File

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