summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/locktest.c7
-rw-r--r--source3/utils/masktest.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/source3/utils/locktest.c b/source3/utils/locktest.c
index 475e20fa66..482167a45a 100644
--- a/source3/utils/locktest.c
+++ b/source3/utils/locktest.c
@@ -454,6 +454,7 @@ static void usage(void)
"Usage:\n\
locktest //server1/share1 //server2/share2 [options..]\n\
options:\n\
+ -W workgroup\n\
-U user%%pass\n\
-s seed\n\
-o numops\n\
@@ -497,6 +498,7 @@ static void usage(void)
TimeInit();
charset_initialise();
+ codepage_initialise(lp_client_code_page());
lp_load(servicesf,True,False,False);
load_interfaces();
@@ -507,7 +509,7 @@ static void usage(void)
seed = time(NULL);
- while ((opt = getopt(argc, argv, "U:s:ho:aA")) != EOF) {
+ while ((opt = getopt(argc, argv, "U:s:ho:aAW:")) != EOF) {
switch (opt) {
case 'U':
pstrcpy(username,optarg);
@@ -533,6 +535,9 @@ static void usage(void)
case 'h':
usage();
exit(1);
+ case 'W':
+ pstrcpy(workgroup, optarg);
+ break;
default:
printf("Unknown option %c (%d)\n", (char)opt, opt);
exit(1);
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);