From b5e9ada632491f56f1f8a1997473a6851284db5e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 16:33:51 +0200 Subject: s3:libsmb/libsmb_dir: make use of cli_state_remote_name() metze --- source3/libsmb/libsmb_dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c index b394c3541a..8d3d12d86a 100644 --- a/source3/libsmb/libsmb_dir.c +++ b/source3/libsmb/libsmb_dir.c @@ -554,7 +554,7 @@ SMBC_opendir_ctx(SMBCCTX *context, } workgroup = talloc_strdup(frame, wg_ptr); - server = talloc_strdup(frame, cli->desthost); + server = talloc_strdup(frame, cli_state_remote_name(cli)); cli_shutdown(cli); @@ -2003,7 +2003,7 @@ SMBC_rename_ctx(SMBCCTX *ocontext, } /*d_printf(">>>rename: resolved path as %s\n", targetpath2);*/ - if (strcmp(targetcli1->desthost, targetcli2->desthost) || + if (strcmp(cli_state_remote_name(targetcli1), cli_state_remote_name(targetcli2)) || strcmp(targetcli1->share, targetcli2->share)) { /* can't rename across file systems */ -- cgit