From 3ccc7609476139bc6a906110a2623605f3802159 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 8 Jun 2011 15:42:22 +1000 Subject: s3-param Remove special case for lp_workgroup() There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett --- source3/client/client.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index d25198bfb9..209c2cb1c9 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -5068,7 +5068,6 @@ static int do_message_op(struct user_auth_info *a_info) poptContext pc; char *p; int rc = 0; - fstring new_workgroup; bool tar_opt = false; bool service_opt = false; struct poptOption long_options[] = { @@ -5098,10 +5097,9 @@ static int do_message_op(struct user_auth_info *a_info) exit(ENOMEM); } - /* initialize the workgroup name so we can determine whether or + /* initialize the netbios name so we can determine whether or not it was set by a command line option */ - set_global_myworkgroup( "" ); set_global_myname( "" ); /* set default debug level to 1 regardless of what smb.conf sets */ @@ -5249,13 +5247,6 @@ static int do_message_op(struct user_auth_info *a_info) poptGetArg(pc)); } - /* save the workgroup... - - FIXME!! do we need to do this for other options as well - (or maybe a generic way to keep lp_load() from overwriting - everything)? */ - - fstrcpy( new_workgroup, lp_workgroup() ); calling_name = talloc_strdup(frame, global_myname() ); if (!calling_name) { exit(ENOMEM); @@ -5294,10 +5285,6 @@ static int do_message_op(struct user_auth_info *a_info) } } - if ( strlen(new_workgroup) != 0 ) { - set_global_myworkgroup( new_workgroup ); - } - if ( strlen(calling_name) != 0 ) { set_global_myname( calling_name ); } else { -- cgit