1
1

socket: Add a comment about shells

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
Andreas Schneider 2022-08-29 14:05:50 +02:00
родитель 2546b62242
Коммит d642b20d9c

Просмотреть файл

@ -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