From bb6d1b78dc8e344003ce0723293d19dd20d6f236 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 29 Aug 2022 14:05:50 +0200 Subject: [PATCH] socket: Add a comment about shells Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen (cherry picked from commit d642b20d9c9d056c3f434c4765969194bc30a9f7) --- src/socket.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/socket.c b/src/socket.c index 525b304f..691ff199 100644 --- a/src/socket.c +++ b/src/socket.c @@ -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