From 39d05ebe7ca34d56853d7d46edfd97c579973378 Mon Sep 17 00:00:00 2001 From: Carl Hauser Date: Thu, 12 Dec 2024 19:18:02 -0800 Subject: [PATCH] [rtns] Capture exitCode from ssh_channel_get_exit_status (#7541) --- 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);