diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 16:50:43 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:10 +0200 |
commit | 1f1ca59a0445d495f4e29f722b65f23e622b1838 (patch) | |
tree | 934bc77177d70bd9a8acfdc40aaf7bc235742b3e /source3 | |
parent | 419eb293f7cbc89651fb13de5745bf51778fb7b5 (diff) | |
download | samba-1f1ca59a0445d495f4e29f722b65f23e622b1838.tar.gz samba-1f1ca59a0445d495f4e29f722b65f23e622b1838.tar.bz2 samba-1f1ca59a0445d495f4e29f722b65f23e622b1838.zip |
s3:net_rpc_printer: make use of cli_state_remote_name()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 7396dadf53..8e8b140d37 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -368,8 +368,10 @@ NTSTATUS net_copy_file(struct net_context *c, d_printf(_("copying [\\\\%s\\%s%s] => [\\\\%s\\%s%s] " "%s ACLs and %s DOS Attributes %s\n"), - cli_share_src->desthost, cli_share_src->share, src_name, - cli_share_dst->desthost, cli_share_dst->share, dst_name, + cli_state_remote_name(cli_share_src), + cli_share_src->share, src_name, + cli_state_remote_name(cli_share_dst), + cli_share_dst->share, dst_name, copy_acls ? _("with") : _("without"), copy_attrs ? _("with") : _("without"), copy_timestamps ? _("(preserving timestamps)") : "" ); @@ -1897,7 +1899,7 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c, /* open print$-share on the src server */ nt_status = connect_to_service(c, &cli_share_src, cli_state_remote_sockaddr(cli), - cli->desthost, + cli_state_remote_name(cli), "print$", "A:"); if (!NT_STATUS_IS_OK(nt_status)) goto done; @@ -1908,7 +1910,7 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c, /* open print$-share on the dst server */ nt_status = connect_to_service(c, &cli_share_dst, cli_state_remote_sockaddr(cli_dst), - cli_dst->desthost, + cli_state_remote_name(cli_dst), "print$", "A:"); if (!NT_STATUS_IS_OK(nt_status)) return nt_status; |