1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3:utils: avoid cli_nt_error()/cli_errstr() if we already have the status

metze
This commit is contained in:
Stefan Metzmacher 2011-07-07 15:33:43 +02:00
parent e5955903fd
commit 9a350ca3b6

View File

@ -3833,8 +3833,8 @@ static NTSTATUS sync_files(struct copy_clistate *cp_clistate, const char *mask)
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, _("cli_resolve_path %s failed with error: "
"%s\n"),
mask, cli_errstr(cp_clistate->cli_share_src));
return cli_nt_error(cp_clistate->cli_share_src);
mask, nt_errstr(status));
return status;
}
status = cli_list(targetcli, targetpath, cp_clistate->attribute,