diff options
author | Nick Thomas <nick@gitlab.com> | 2021-09-27 19:28:06 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2021-09-27 20:25:10 +0100 |
commit | 5564ea9ca23217687a6e6c091f3b4fc11e375a2f (patch) | |
tree | b58611c4552934ae0412092622b8af20326a7c0f /internal/sshd/session_test.go | |
parent | a1ae9e5ad2900d512a58ce64f4ad0f02769c3edd (diff) | |
download | gitlab-shell-5564ea9ca23217687a6e6c091f3b4fc11e375a2f.tar.gz |
Don't swallow an error parsing SSH_ORIGINAL_COMMAND
Diffstat (limited to 'internal/sshd/session_test.go')
-rw-r--r-- | internal/sshd/session_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sshd/session_test.go b/internal/sshd/session_test.go index b014c0c..43d6aca 100644 --- a/internal/sshd/session_test.go +++ b/internal/sshd/session_test.go @@ -145,7 +145,7 @@ func TestHandleShell(t *testing.T) { { desc: "fails to parse command", cmd: `\`, - errMsg: "Failed to parse command: Invalid SSH command\nUnknown command: \\\n", + errMsg: "Failed to parse command: Invalid SSH command: invalid command line string\nUnknown command: \\\n", gitlabKeyId: "root", expectedExitCode: 128, }, { |