s3-net: Fix the return codes. 0 on success, -1 on failure
authorAmitay Isaacs <amitay@gmail.com>
Tue, 6 Dec 2011 07:11:11 +0000 (18:11 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 19 Dec 2011 00:57:24 +0000 (01:57 +0100)
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Mon Dec 19 01:57:24 CET 2011 on sn-devel-104

source3/utils/net_rpc.c

index 9c2db0a6626a7ef96893b87fc58c1f266e561960..ef017ec9dc02ba6c8e50fdebd4b8330b1e1d3496 100644 (file)
@@ -5062,7 +5062,7 @@ int net_usersidlist(struct net_context *c, int argc, const char **argv)
 
        if (!get_user_tokens(c, &num_tokens, &tokens)) {
                DEBUG(0, ("Could not get the user/sid list\n"));
-               return 0;
+               return -1;
        }
 
        for (i=0; i<num_tokens; i++) {
@@ -5071,7 +5071,7 @@ int net_usersidlist(struct net_context *c, int argc, const char **argv)
        }
 
        SAFE_FREE(tokens);
-       return 1;
+       return 0;
 }
 
 int net_usersidlist_usage(struct net_context *c, int argc, const char **argv)