summaryrefslogtreecommitdiffstats
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
commitc3f5df8d6743bb7b48118b378f23268008e74145 (patch)
tree1698ed4f0c6951ed416d76a1b34b3ff22af6831d
parent7c5ac46b8ad0be681d102e7ef3478d64d7a2b8e6 (diff)
downloadsamba-c3f5df8d6743bb7b48118b378f23268008e74145.tar.gz
samba-c3f5df8d6743bb7b48118b378f23268008e74145.tar.xz
samba-c3f5df8d6743bb7b48118b378f23268008e74145.zip
Display some errors if the initial connection to the server could not be
made.
-rw-r--r--source/rpcclient/rpcclient.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c
index be1be0fd51a..66e84fc1a93 100644
--- a/source/rpcclient/rpcclient.c
+++ b/source/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;
}