From 1f1ca59a0445d495f4e29f722b65f23e622b1838 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 16:50:43 +0200 Subject: s3:net_rpc_printer: make use of cli_state_remote_name() metze --- source3/utils/net_rpc_printer.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source3/utils/net_rpc_printer.c') diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 7396dadf532..8e8b140d37f 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; -- cgit