summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 596d6a9677..b8b63207d7 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -36,7 +36,7 @@ pstring desthost="";
extern pstring myname;
pstring password = "";
pstring username="";
-pstring workgroup=WORKGROUP;
+pstring workgroup="";
char *cmdstr="";
BOOL got_pass = False;
BOOL connect_as_printer = False;
@@ -4503,6 +4503,9 @@ static void usage(char *pname)
return (-1);
}
+ if (*workgroup == 0)
+ strcpy(workgroup,lp_workgroup());
+
load_interfaces();
get_myname(*myname?NULL:myname,NULL);
strupper(myname);