diff options
author | Tim Potter <tpot@samba.org> | 2002-01-06 03:24:51 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-01-06 03:24:51 +0000 |
commit | 84dbcd6147557b78e635ac70bf744020ed3253f1 (patch) | |
tree | f67415aaab14dfea03b01825d91198dad419072d /source3 | |
parent | d1baa1fda928bfcc1998575f2af71aaa001402aa (diff) | |
download | samba-84dbcd6147557b78e635ac70bf744020ed3253f1.tar.gz samba-84dbcd6147557b78e635ac70bf744020ed3253f1.tar.bz2 samba-84dbcd6147557b78e635ac70bf744020ed3253f1.zip |
Display nicer message when server name could not be resolved.
(This used to be commit 950d8e365626ecbd82e9ee965dc1724dc50c64a4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 7b98d680a1..79ab44513d 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -659,10 +659,10 @@ static void usage(void) get_myname((*global_myname)?NULL:global_myname); strupper(global_myname); - - /* resolve the IP address */ + /* Resolve the IP address */ + if (!resolve_name(server, &server_ip, 0x20)) { - DEBUG(1,("Unable to resolve server name\n")); + DEBUG(1,("Unable to resolve %s\n", server)); return 1; } |