diff options
author | Tim Potter <tpot@samba.org> | 2001-07-27 22:54:50 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-07-27 22:54:50 +0000 |
commit | df2cdf6d7b61483be87b08cad2f89ee7e80f7f8e (patch) | |
tree | c2ce43bad14de659911673816724462b051dc469 | |
parent | b99e314cfbee90441c05669a824e7e5d4fec3f8e (diff) | |
download | samba-df2cdf6d7b61483be87b08cad2f89ee7e80f7f8e.tar.gz samba-df2cdf6d7b61483be87b08cad2f89ee7e80f7f8e.tar.bz2 samba-df2cdf6d7b61483be87b08cad2f89ee7e80f7f8e.zip |
Return an exit code when connect failed.
Patch from Michael Sweet <mike@easysw.com>
(This used to be commit 2c7d09b38dceb58b85fe49efb7c7e3def84c587b)
-rw-r--r-- | source3/rpcclient/rpcclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 1ab88747ea..ee860798f6 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -698,7 +698,7 @@ static void usage(void) /* open a connection to the specified server */ ZERO_STRUCTP (&cli); if (!setup_connection (&cli, server, &creds)) { - return 0; + return 1; } /* There are no pointers in ntuser_creds struct so zero it out */ |