summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-17 10:09:57 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:56 +0200
commit86455646e32055b7eba6bce42777e05f6b2cebfb (patch)
treeb6d872d430a2a9521cac5a4b2549a592b36e7185
parent91e77f364018eae88344e472516573a51c38170d (diff)
downloadsamba-86455646e32055b7eba6bce42777e05f6b2cebfb.tar.gz
samba-86455646e32055b7eba6bce42777e05f6b2cebfb.tar.bz2
samba-86455646e32055b7eba6bce42777e05f6b2cebfb.zip
s3:net: fix the exit code of net serverid list
-rw-r--r--source3/utils/net_serverid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c
index 9d9c8ebc4b..5d25f1ecf8 100644
--- a/source3/utils/net_serverid.c
+++ b/source3/utils/net_serverid.c
@@ -37,7 +37,7 @@ static int net_serverid_list(struct net_context *c, int argc,
const char **argv)
{
d_printf("pid unique_id msg_flags\n");
- return serverid_traverse_read(net_serverid_list_fn, NULL) > 0 ? 0 : -1;
+ return serverid_traverse_read(net_serverid_list_fn, NULL) ? 0 : -1;
}
static int net_serverid_wipe_fn(struct db_record *rec,