diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 16:33:51 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:09 +0200 |
commit | b5e9ada632491f56f1f8a1997473a6851284db5e (patch) | |
tree | b9989d0595fc5caaad0315a6410ff45106ebe44b | |
parent | 8277260ae78619793c8c404a75936cf423b15cfe (diff) | |
download | samba-b5e9ada632491f56f1f8a1997473a6851284db5e.tar.gz samba-b5e9ada632491f56f1f8a1997473a6851284db5e.tar.bz2 samba-b5e9ada632491f56f1f8a1997473a6851284db5e.zip |
s3:libsmb/libsmb_dir: make use of cli_state_remote_name()
metze
-rw-r--r-- | source3/libsmb/libsmb_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |