diff --git a/appl/afsutil/pagsh.c b/appl/afsutil/pagsh.c index eb44a9a2a..9794b37c6 100644 --- a/appl/afsutil/pagsh.c +++ b/appl/afsutil/pagsh.c @@ -169,6 +169,8 @@ main(int argc, char **argv) path = getenv("SHELL"); if(path == NULL){ struct passwd *pw = k_getpwuid(geteuid()); + if (pw == NULL) + errx(1, "no such user: %d", (int)geteuid()); path = strdup(pw->pw_shell); } } else {