Menu

#29 Invalid internally wrapped RC.

v1.06
open
None
1
2023-04-13
2023-04-13
No

Return codes from the internal "wrapped" command overwrite the RC of SSHPass.

In short, if I have an RC of 5 from a command I run against an external host over SSHPass, then SSHPass will also return an RC of 5. SSHPass should instead return an RC of 3, and perhaps put the internal RC into stderr.

I discovered this because Ansible, which uses SSHPass as a dependency by default at my company, will close connections in rather ugly ways if a delegated command has an RC of 5, instead of handling it normally.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.