From 39965d1993f854874d0f636ae14dbeb246c5b531 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 5 Jun 2004 19:24:48 +0000 Subject: r1034: Couple of small (popt) fixes (This used to be commit 6fa0baa1c33b487f5f693483dd9b2664a0093b12) --- source4/client/client.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source4') diff --git a/source4/client/client.c b/source4/client/client.c index 1d428a4f0e..db44dd3d28 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -3,7 +3,7 @@ SMB client Copyright (C) Andrew Tridgell 1994-1998 Copyright (C) Simo Sorce 2001-2002 - Copyright (C) Jelmer Vernooij 2003 + Copyright (C) Jelmer Vernooij 2003-2004 Copyright (C) James J Myers 2003 This program is free software; you can redistribute it and/or modify @@ -3039,9 +3039,8 @@ static void remember_query_host(const char *arg, argv[0], dyn_CONFIGFILE); } - pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, - POPT_CONTEXT_KEEP_FIRST); - poptSetOtherOptionHelp(pc, "service "); + pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0); + poptSetOtherOptionHelp(pc, "[OPTIONS] service "); in_client = True; /* Make sure that we tell lp_load we are */ @@ -3096,8 +3095,6 @@ static void remember_query_host(const char *arg, } } - poptGetArg(pc); - load_interfaces(); if(poptPeekArg(pc)) { -- cgit