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:
parent
79fe4bbf73
commit
9e2d4b61de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user