Bug 7551: Return error of cli_push when 'put - /some/file' is used
authorBram <fnzon@lists.wizbit.be>
Thu, 29 Sep 2011 09:28:03 +0000 (11:28 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 29 Sep 2011 21:47:02 +0000 (23:47 +0200)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104

source3/client/client.c

index 30f8b8baf4a4f93742e772722987824bcace0839..beb3dca7105465ac50150995eba1654d305cbfb1 100644 (file)
@@ -1948,7 +1948,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;