socket: Add a comment about shells
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
родитель
2546b62242
Коммит
d642b20d9c
@ -900,7 +900,10 @@ ssh_execute_command(const char *command, socket_t in, socket_t out)
|
|||||||
exit(1);
|
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");
|
shell = getenv("SHELL");
|
||||||
if (shell == NULL || shell[0] == '\0') {
|
if (shell == NULL || shell[0] == '\0') {
|
||||||
/* Fall back to bash. There are issues with dash or
|
/* Fall back to bash. There are issues with dash or
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user