mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user