summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-29 14:38:42 +0100
committerMichael Adam <obnox@samba.org>2007-12-29 17:00:27 +0100
commite8cb7cecf2dde62f271a37376cefa5179eb7b7bc (patch)
tree8c26e22001f004a22427d4a6fa3b2d7328d4dd96 /source3/utils
parent0e8ca78720ed0fff3853b8dbd407d41044aa4275 (diff)
downloadsamba-e8cb7cecf2dde62f271a37376cefa5179eb7b7bc.tar.gz
samba-e8cb7cecf2dde62f271a37376cefa5179eb7b7bc.tar.bz2
samba-e8cb7cecf2dde62f271a37376cefa5179eb7b7bc.zip
Make sure libnet_smbconf_get_share_names() always lists "global" first.
And don't return count-1 but count. Michael (This used to be commit b7cb9b78231512dc4a88c307048d7fb5334fa319)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 651948c07c..8791d7cbdd 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -475,7 +475,7 @@ static int net_conf_listshares(int argc, const char **argv)
goto done;
}
- for (count = 0; count <= num_shares; count++)
+ for (count = 0; count < num_shares; count++)
{
d_printf("%s\n", share_names[count]);
}