diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-04-26 00:43:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:34 -0500 |
commit | 2733f8cf7cbdf5282837c91d4175293ff9a7ddcd (patch) | |
tree | 5f6e197dab5704eb3cf937b0aee6897f7d381d5f /source4 | |
parent | 9e323d5db5937ed35c4947aca3931f0774617ada (diff) | |
download | samba-2733f8cf7cbdf5282837c91d4175293ff9a7ddcd.tar.gz samba-2733f8cf7cbdf5282837c91d4175293ff9a7ddcd.tar.bz2 samba-2733f8cf7cbdf5282837c91d4175293ff9a7ddcd.zip |
r361: allow anonymous browsing
(This used to be commit 845730501e24629aa3db4698f097dd73c14bca3b)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/client/client.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index d9a8aa7229..3878719a31 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -2279,8 +2279,8 @@ static BOOL browse_host(const char *query_host) r.out.resume_handle = &resume_handle; r.out.ctr.ctr1 = &ctr1; - d_printf("\n\tSharename Type Comment\n"); - d_printf("\t--------- ---- -------\n"); + d_printf("\n\tSharename Type Comment\n"); + d_printf("\t--------- ---- -------\n"); do { ZERO_STRUCT(ctr1); @@ -2893,15 +2893,8 @@ handle a -L query ****************************************************************************/ static int do_host_query(char *query_host) { - cli = do_connect(query_host, "IPC$"); - if (!cli) - return 1; - browse_host(query_host); list_servers(lp_workgroup()); - - cli_shutdown(cli); - return(0); } |