summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-08 15:42:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-09 12:40:09 +0200
commit3ccc7609476139bc6a906110a2623605f3802159 (patch)
treea1f464a10296ef6f9b17f405eb605180f2f30a7f /source3/client
parentacdf5b0d4c188c0ca9ac17caedd1b53ae241acd6 (diff)
downloadsamba-3ccc7609476139bc6a906110a2623605f3802159.tar.gz
samba-3ccc7609476139bc6a906110a2623605f3802159.tar.bz2
samba-3ccc7609476139bc6a906110a2623605f3802159.zip
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
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c15
1 files changed, 1 insertions, 14 deletions
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 {