diff options
author | Michael Adam <obnox@samba.org> | 2007-12-29 14:38:42 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-29 17:00:27 +0100 |
commit | e8cb7cecf2dde62f271a37376cefa5179eb7b7bc (patch) | |
tree | 8c26e22001f004a22427d4a6fa3b2d7328d4dd96 /source3/utils | |
parent | 0e8ca78720ed0fff3853b8dbd407d41044aa4275 (diff) | |
download | samba-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.c | 2 |
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]); } |