From: Tim Potter Date: Fri, 27 Jul 2001 22:54:50 +0000 (+0000) Subject: Return an exit code when connect failed. X-Git-Tag: samba-2.2.5pre1~1743^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c7d09b38dceb58b85fe49efb7c7e3def84c587b;p=thirdparty%2Fsamba.git Return an exit code when connect failed. Patch from Michael Sweet --- 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 */