From 8ce15b3a71a29fe27b7146c1b802aa11e7c96433 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 15 Jul 2010 16:06:11 -0700 Subject: Fix bug - 7551 smbclient does not return proper exit code. Catch error in cli_push. Jeremy. --- source3/client/client.c | 1 + 1 file changed, 1 insertion(+) 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))) { -- cgit