summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-30 04:21:53 +0000
committerTim Potter <tpot@samba.org>2001-10-30 04:21:53 +0000
commit160950ae0ec718a4d6ef9932ae2ff175fc8ebbd6 (patch)
tree00409649a6022209e92e6353061bf6e1b68f4e18 /source3/rpcclient/rpcclient.c
parent5c3ccf77666ab63e8dfc980188c365a7b15bafcf (diff)
downloadsamba-160950ae0ec718a4d6ef9932ae2ff175fc8ebbd6.tar.gz
samba-160950ae0ec718a4d6ef9932ae2ff175fc8ebbd6.tar.bz2
samba-160950ae0ec718a4d6ef9932ae2ff175fc8ebbd6.zip
Display some errors if the initial connection to the server could not be
made. (This used to be commit c3f5df8d6743bb7b48118b378f23268008e74145)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r--source3/rpcclient/rpcclient.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index be1be0fd51..66e84fc1a9 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -575,6 +575,7 @@ struct cli_state *setup_connection(struct cli_state *cli, char *system_name,
/* Establish a SMB connection */
if (!resolve_srv_name(system_name, dest_host, &dest_ip)) {
+ fprintf(stderr, "Could not resolve %s\n", dest_host);
return NULL;
}
@@ -583,6 +584,7 @@ struct cli_state *setup_connection(struct cli_state *cli, char *system_name,
if (!cli_establish_connection(cli, dest_host, &dest_ip, &calling,
&called, "IPC$", "IPC", False, True)) {
+ fprintf(stderr, "Error establishing IPC$ connection\n");
return NULL;
}