]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Return an exit code when connect failed.
authorTim Potter <tpot@samba.org>
Fri, 27 Jul 2001 22:54:50 +0000 (22:54 +0000)
committerTim Potter <tpot@samba.org>
Fri, 27 Jul 2001 22:54:50 +0000 (22:54 +0000)
Patch from Michael Sweet <mike@easysw.com>

source/rpcclient/rpcclient.c

index 1ab88747eaf6226cff97e9f254b3e5e6f842fe89..ee860798f6d3b9941583c08e6edc871e5d84b2e3 100644 (file)
@@ -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 */