Bug 7551: Return error of cli_push when 'put - /some/file' is used.
authorJeremy Allison <jra@samba.org>
Sat, 8 Oct 2011 18:18:34 +0000 (20:18 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 8 Oct 2011 18:18:34 +0000 (20:18 +0200)
source3/client/client.c

index e1952b593d02274fef39f32956821a10dabf1a6b..0e8b9c11a82d1236ecb27c5fad3eeb0b2171cb3b 100644 (file)
@@ -1668,6 +1668,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))) {