From a3949a49f7730e8a4af0a50012b4fd5c7220711b Mon Sep 17 00:00:00 2001 From: Carl Hauser Date: Thu, 12 Dec 2024 12:42:08 -0800 Subject: [PATCH] capture exitCode from ssh_channel_get_exit_status --- roborioteamnumbersetter/src/main/native/cpp/SshSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roborioteamnumbersetter/src/main/native/cpp/SshSession.cpp b/roborioteamnumbersetter/src/main/native/cpp/SshSession.cpp index 8da62444b6c..187ad784b73 100644 --- a/roborioteamnumbersetter/src/main/native/cpp/SshSession.cpp +++ b/roborioteamnumbersetter/src/main/native/cpp/SshSession.cpp @@ -146,7 +146,7 @@ std::string SshSession::ExecuteResult(std::string_view cmd, int* exitStatus) { #if LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR >= 11 ssh_channel_get_exit_state(channel, &exitCode, nullptr, nullptr); #else - ssh_channel_get_exit_status(channel); + exitCode = ssh_channel_get_exit_status(channel); #endif INFO("{} {}", exitCode, cmd);