summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r--source3/utils/testparm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 3086019467..1d48249a75 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -175,6 +175,7 @@ int main(int argc, char *argv[])
{
extern char *optarg;
extern int optind;
+ extern fstring local_machine;
const char *config_file = dyn_CONFIGFILE;
int s;
static BOOL silent_mode = False;
@@ -182,7 +183,7 @@ int main(int argc, char *argv[])
int opt;
poptContext pc;
static char *term_code = "";
- static char *new_local_machine = NULL;
+ static char *new_local_machine = local_machine;
const char *cname;
const char *caddr;
@@ -206,10 +207,8 @@ int main(int argc, char *argv[])
cname = poptGetArg(pc);
caddr = poptGetArg(pc);
-
- if (new_local_machine) {
- set_local_machine_name(new_local_machine);
- }
+
+ fstrcpy(local_machine,new_local_machine);
dbf = x_stdout;
DEBUGLEVEL = 2;