From: Amitay Isaacs Date: Tue, 6 Dec 2011 07:11:11 +0000 (+1100) Subject: s3-net: Fix the return codes. 0 on success, -1 on failure X-Git-Url: http://git.samba.org/?p=mat%2Fsamba.git;a=commitdiff_plain;h=9e2d4b61de43e058a476006a748c85192171b309 s3-net: Fix the return codes. 0 on success, -1 on failure Autobuild-User: Amitay Isaacs Autobuild-Date: Mon Dec 19 01:57:24 CET 2011 on sn-devel-104 --- diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 9c2db0a662..ef017ec9dc 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -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