s3:libsmb/libsmb_dir: make use of cli_state_remote_name()
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:33:51 +0000 (16:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:09 +0000 (17:06 +0200)
metze

source3/libsmb/libsmb_dir.c

index b394c3541a905657322fd380af00e005802d2f82..8d3d12d86a923be6144b1c50d24e6aa0edb8f3b5 100644 (file)
@@ -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 */