summaryrefslogtreecommitdiff
path: root/source3/utils/masktest.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-05-22 23:38:56 +0000
committerTim Potter <tpot@samba.org>2000-05-22 23:38:56 +0000
commit6c52c1a5c76b871ecb415962b2ea7fed64f8e10a (patch)
tree7f848de34e4d67719ba2883cf1923cb46a16df34 /source3/utils/masktest.c
parent69519df0f6a6d9c0d2b88cd092fa58421b13f4a3 (diff)
downloadsamba-6c52c1a5c76b871ecb415962b2ea7fed64f8e10a.tar.gz
samba-6c52c1a5c76b871ecb415962b2ea7fed64f8e10a.tar.bz2
samba-6c52c1a5c76b871ecb415962b2ea7fed64f8e10a.zip
Added -W workgroup command line option.
Added call to codepage_initialise(). (This used to be commit fcb8e2fbe2deabfc2f8d7e69dd23dca9740c6dc1)
Diffstat (limited to 'source3/utils/masktest.c')
-rw-r--r--source3/utils/masktest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/utils/masktest.c b/source3/utils/masktest.c
index d8afbddf98..a3eb95bcae 100644
--- a/source3/utils/masktest.c
+++ b/source3/utils/masktest.c
@@ -274,6 +274,7 @@ static void usage(void)
"Usage:\n\
masktest //server/share [options..]\n\
options:\n\
+ -W workgroup\n\
-U user%%pass\n\
-s seed\n\
-f filechars (default %s)\n\
@@ -322,6 +323,7 @@ static void usage(void)
TimeInit();
charset_initialise();
+ codepage_initialise(lp_client_code_page());
lp_load(servicesf,True,False,False);
load_interfaces();
@@ -332,7 +334,7 @@ static void usage(void)
seed = time(NULL);
- while ((opt = getopt(argc, argv, "U:s:hm:f:ao")) != EOF) {
+ while ((opt = getopt(argc, argv, "U:s:hm:f:aoW:")) != EOF) {
switch (opt) {
case 'U':
pstrcpy(username,optarg);
@@ -361,6 +363,9 @@ static void usage(void)
case 'o':
old_list = True;
break;
+ case 'W':
+ pstrcpy(workgroup, optarg);
+ break;
default:
printf("Unknown option %c (%d)\n", (char)opt, opt);
exit(1);