From df2cdf6d7b61483be87b08cad2f89ee7e80f7f8e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 27 Jul 2001 22:54:50 +0000 Subject: Return an exit code when connect failed. Patch from Michael Sweet (This used to be commit 2c7d09b38dceb58b85fe49efb7c7e3def84c587b) --- source3/rpcclient/rpcclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpcclient/rpcclient.c') 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 */ -- cgit