summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-12-06 18:11:11 +1100
committerAmitay Isaacs <amitay@samba.org>2011-12-19 01:57:24 +0100
commit9e2d4b61de43e058a476006a748c85192171b309 (patch)
treea5265ed30640c56c794e3c9b09db620e397dd2fa /source3
parent79fe4bbf731272ea21f34bd2653673fe1a34e2c4 (diff)
downloadsamba-9e2d4b61de43e058a476006a748c85192171b309.tar.gz
samba-9e2d4b61de43e058a476006a748c85192171b309.tar.bz2
samba-9e2d4b61de43e058a476006a748c85192171b309.zip
s3-net: Fix the return codes. 0 on success, -1 on failure
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Dec 19 01:57:24 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc.c4
1 files changed, 2 insertions, 2 deletions
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<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)