diff options
author | Tim Potter <tpot@samba.org> | 2000-05-22 23:38:56 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-05-22 23:38:56 +0000 |
commit | 6c52c1a5c76b871ecb415962b2ea7fed64f8e10a (patch) | |
tree | 7f848de34e4d67719ba2883cf1923cb46a16df34 | |
parent | 69519df0f6a6d9c0d2b88cd092fa58421b13f4a3 (diff) | |
download | samba-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)
-rw-r--r-- | source3/utils/locktest.c | 7 | ||||
-rw-r--r-- | source3/utils/masktest.c | 7 |
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); |