1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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
This commit is contained in:
Amitay Isaacs 2011-12-06 18:11:11 +11:00 committed by Amitay Isaacs
parent 79fe4bbf73
commit 9e2d4b61de

View 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)) { if (!get_user_tokens(c, &num_tokens, &tokens)) {
DEBUG(0, ("Could not get the user/sid list\n")); DEBUG(0, ("Could not get the user/sid list\n"));
return 0; return -1;
} }
for (i=0; i<num_tokens; i++) { 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); SAFE_FREE(tokens);
return 1; return 0;
} }
int net_usersidlist_usage(struct net_context *c, int argc, const char **argv) int net_usersidlist_usage(struct net_context *c, int argc, const char **argv)