Let su report something more useful when shells fail to exec()

This commit is contained in:
Ben Gras 2006-03-27 11:08:17 +00:00
parent d4f8286997
commit 1c88703f7b

View file

@ -145,8 +145,10 @@ char *argv[];
*envp = NULL;
(void) chdir(pwd->pw_dir);
execve(shell, argv, envv);
perror(shell);
} else {
execv(shell, argv);
perror(shell);
}
fprintf(stderr, "No shell\n");
return(3);