1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-12-28 17:08:08 +00:00

improve error message when execv()ing the shell fails

This commit is contained in:
Greg Alexander 2017-04-30 11:51:37 -04:00
parent 9ec4493910
commit beed31bead

View File

@ -1000,7 +1000,7 @@ static void execchild(void *user_data) {
run_shell_command(chansess->cmd, ses.maxfd, usershell);
/* only reached on error */
dropbear_exit("Child failed");
dropbear_exit("Failed to execv() shell '%.100s'", usershell);
}
/* Set up the general chansession environment, in particular child-exit