diff options
author | Volker Lendecke <vl@samba.org> | 2011-07-03 20:53:55 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-07-06 08:35:27 +0200 |
commit | 26782fbbf3a7885746aa17be259607dd2d418347 (patch) | |
tree | c2bccfc28bf124b7b983f167fa156a590a448eb0 /source3/utils | |
parent | c019302e65051f214c5ea2ef908aa0ef79c8b12e (diff) | |
download | samba-26782fbbf3a7885746aa17be259607dd2d418347.tar.gz samba-26782fbbf3a7885746aa17be259607dd2d418347.tar.bz2 samba-26782fbbf3a7885746aa17be259607dd2d418347.zip |
s3: make cli_resolve_path return NTSTATUS
This looks larger than it is. No parameters needed changing.
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 2ecf1aaa5a..5c21b63741 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -3827,8 +3827,10 @@ static NTSTATUS sync_files(struct copy_clistate *cp_clistate, const char *mask) DEBUG(3,("calling cli_list with mask: %s\n", mask)); - if ( !cli_resolve_path(talloc_tos(), "", NULL, cp_clistate->cli_share_src, - mask, &targetcli, &targetpath ) ) { + status = cli_resolve_path(talloc_tos(), "", NULL, + cp_clistate->cli_share_src, + mask, &targetcli, &targetpath); + 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)); |