diff options
author | Jeremy Allison <jra@samba.org> | 2010-07-15 16:06:11 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-07-15 16:06:11 -0700 |
commit | 8ce15b3a71a29fe27b7146c1b802aa11e7c96433 (patch) | |
tree | afe76c8ccfb3b8a4596029c41dad2ae3b9f1bc5c | |
parent | 0e212acd32b0378e9d7ea912f0eee5afa230d898 (diff) | |
download | samba-8ce15b3a71a29fe27b7146c1b802aa11e7c96433.tar.gz samba-8ce15b3a71a29fe27b7146c1b802aa11e7c96433.tar.bz2 samba-8ce15b3a71a29fe27b7146c1b802aa11e7c96433.zip |
Fix bug - 7551 smbclient does not return proper exit code.
Catch error in cli_push.
Jeremy.
-rw-r--r-- | source3/client/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 416a4bb6cf..326c23e657 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1717,6 +1717,7 @@ static int do_put(const char *rname, const char *lname, bool reput) &state); if (!NT_STATUS_IS_OK(status)) { d_fprintf(stderr, "cli_push returned %s\n", nt_errstr(status)); + rc = 1; } if (!NT_STATUS_IS_OK(cli_close(targetcli, fnum))) { |