socket: Add a comment about shells

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2022-08-29 14:05:50 +02:00
parent 2546b62242
commit d642b20d9c

View File

@@ -900,7 +900,10 @@ ssh_execute_command(const char *command, socket_t in, socket_t out)
exit(1);
}
/* By default, use the current users shell */
/*
* By default, use the current users shell. This could fail with some
* shells like zsh or dash ...
*/
shell = getenv("SHELL");
if (shell == NULL || shell[0] == '\0') {
/* Fall back to bash. There are issues with dash or