From 2c7d09b38dceb58b85fe49efb7c7e3def84c587b Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 27 Jul 2001 22:54:50 +0000 Subject: [PATCH] Return an exit code when connect failed. Patch from Michael Sweet --- source/rpcclient/rpcclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c index 1ab88747eaf..ee860798f6d 100644 --- a/source/rpcclient/rpcclient.c +++ b/source/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 */ -- 2.47.3