summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-26 00:43:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:34 -0500
commit2733f8cf7cbdf5282837c91d4175293ff9a7ddcd (patch)
tree5f6e197dab5704eb3cf937b0aee6897f7d381d5f /source4
parent9e323d5db5937ed35c4947aca3931f0774617ada (diff)
downloadsamba-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.c11
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);
}