From 2733f8cf7cbdf5282837c91d4175293ff9a7ddcd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Apr 2004 00:43:23 +0000 Subject: r361: allow anonymous browsing (This used to be commit 845730501e24629aa3db4698f097dd73c14bca3b) --- source4/client/client.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source4/client') 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); } -- cgit