From: Bram Date: Thu, 29 Sep 2011 09:28:03 +0000 (+0200) Subject: Bug 7551: Return error of cli_push when 'put - /some/file' is used X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20ee0810ff4da3a16a8b7947d4aa0138a8d76577;p=thirdparty%2Fsamba.git Bug 7551: Return error of cli_push when 'put - /some/file' is used Autobuild-User: Jeremy Allison Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104 (cherry picked from commit d883cc664cac81633a60e5b04f99f23a3577ae65) --- diff --git a/source3/client/client.c b/source3/client/client.c index 0e8b9c11a82..e35eb9b4c0b 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1701,7 +1701,7 @@ static int do_put(const char *rname, const char *lname, bool reput) if (f == x_stdin) { cli_shutdown(cli); - exit(0); + exit(rc); } return rc;