diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-07 15:33:43 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-07 19:16:27 +0200 |
commit | 9a350ca3b6ddcebff67bad87210adf1be5f5a725 (patch) | |
tree | 35812e4069464fc454a63f54e4ae293789cc0447 /source3 | |
parent | e5955903fdc5ed6f8660b72db0716d4da25c711c (diff) | |
download | samba-9a350ca3b6ddcebff67bad87210adf1be5f5a725.tar.gz samba-9a350ca3b6ddcebff67bad87210adf1be5f5a725.tar.bz2 samba-9a350ca3b6ddcebff67bad87210adf1be5f5a725.zip |
s3:utils: avoid cli_nt_error()/cli_errstr() if we already have the status
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 5c21b63741..5952f4fe32 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -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, |