PuTTY bug psftp-batch-exit-code

This is a mirror. Follow this link to find the primary PuTTY web site.

Home | FAQ | Feedback | Licence | Updates | Mirrors | Keys | Links | Team
Download: Stable · Snapshot | Docs | Privacy | Changes | Wishlist

summary: PSFTP failures don't always produce failure exit code
class: bug: This is clearly an actual problem we want fixed.
difficulty: fun: Just needs tuits, and not many of them.
blocks: exit-codes
priority: medium: This should be fixed one day.
present-in: 0.64 307aaccc59f6fbfdf7b980ae709c083786044163
fixed-in: 95501a148ccbb0dd49a862d43ebfbac33560b3af 2015-06-26 0.65

When running PSFTP with -batch, if a single command fails (e.g. because the target filesystem is full) but the SSH server returns an exit-status of zero then PSFTP itself returns an exit status of zero. In similar circumstances (and using the SFTP backend) PSCP returns failure.

PSFTP in batch mode already exits early if any command fails, so under those circumstances it would seem sensible for it to also return failure.


If you want to comment on this web site, see the Feedback page.
Audit trail for this bug.
(last revision of this bug record was at 2015-06-26 18:23:42 +0100)