Fix bug - 7551 smbclient does not return proper exit code.
authorJeremy Allison <jra@samba.org>
Thu, 15 Jul 2010 23:06:11 +0000 (16:06 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 15 Jul 2010 23:06:11 +0000 (16:06 -0700)
Catch error in cli_push.

Jeremy.

source3/client/client.c

index 416a4bb6cffe489cc6cbbd9a26ea23122e30f403..326c23e657c3f02c9e22e65c6758434d97b275b0 100644 (file)
@@ -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))) {