Public bug reported: When plink fails to connect to the remote host and authenticate successfully, it not always exists with a non-zero return code.
Happens in both the version packed in Ubuntu (Dec 13 2014 17:09:53) and the git master branch. This bug is important for people using plink in automated scripts as myself as it is impossible to differentiate between the case where the remote command executed correctly and the case where there were some kind of failure. ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: putty-tools 0.63-9 ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5 Uname: Linux 3.18.0-13-generic x86_64 ApportVersion: 2.16.1-0ubuntu2 Architecture: amd64 Date: Tue Feb 24 15:02:31 2015 Dependencies: gcc-5-base 5-20150202-0ubuntu1 libc6 2.19-15ubuntu1 libgcc1 1:5-20150202-0ubuntu1 multiarch-support 2.19-15ubuntu1 InstallationDate: Installed on 2010-01-08 (1873 days ago) InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20091209) ProcEnviron: TERM=xterm PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: putty UpgradeStatus: Upgraded to vivid on 2015-02-10 (14 days ago) ** Affects: putty (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug vivid ** Patch added: "Ensure that plink always return a non-zero error code unless the connection establishes and authenticates correctly" https://bugs.launchpad.net/bugs/1425121/+attachment/4326372/+files/0001-ensure-plink-exits-with-a-failure-return-code-1-when.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1425121 Title: plink fails to signal connection errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/putty/+bug/1425121/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs