1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix bug - 7551 smbclient does not return proper exit code.

Catch error in cli_push.

Jeremy.
This commit is contained in:
Jeremy Allison 2010-07-15 16:06:11 -07:00
parent 0e212acd32
commit 8ce15b3a71

View 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))) {