From: Ben Gras Date: Mon, 27 Mar 2006 11:08:17 +0000 (+0000) Subject: Let su report something more useful when shells fail to exec() X-Git-Tag: v3.1.2a~119 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/style.css?a=commitdiff_plain;h=1c88703f7bb2711f60235265104f6554c73325f3;p=minix.git Let su report something more useful when shells fail to exec() --- diff --git a/commands/simple/su.c b/commands/simple/su.c index a58ba71bf..53c92c241 100755 --- a/commands/simple/su.c +++ b/commands/simple/su.c @@ -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);