summaryrefslogtreecommitdiff
path: root/source3/utils/locktest.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-24 05:47:08 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-24 05:47:08 +0000
commit7fd62a26f77258f6a1eb621d2514e33380888cf0 (patch)
tree8daa52ca004fb044448ef60d9ddad1b717c75cdd /source3/utils/locktest.c
parentfb66b3b6e6f7de7ffbbf2ae3537be7a115597b39 (diff)
downloadsamba-7fd62a26f77258f6a1eb621d2514e33380888cf0.tar.gz
samba-7fd62a26f77258f6a1eb621d2514e33380888cf0.tar.bz2
samba-7fd62a26f77258f6a1eb621d2514e33380888cf0.zip
use lp_workgroup()
use \\ in front of filenames (This used to be commit 9c64f47c164e6ac31a27940fffb415b0b47cd089)
Diffstat (limited to 'source3/utils/locktest.c')
-rw-r--r--source3/utils/locktest.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/utils/locktest.c b/source3/utils/locktest.c
index 482167a45a..9a02cf20ca 100644
--- a/source3/utils/locktest.c
+++ b/source3/utils/locktest.c
@@ -25,13 +25,12 @@
static fstring password;
static fstring username;
-static fstring workgroup;
static int got_pass;
static int numops = 1000;
static BOOL showall;
static BOOL analyze;
-#define FILENAME "locktest.dat"
+#define FILENAME "\\locktest.dat"
#define LOCKRANGE 100
#define LOCKBASE 0
@@ -58,10 +57,12 @@ struct record {
};
static struct record preset[] = {
+#if 0
{36, 5, 0, 0, 0, 8, 1},
{ 2, 6, 0, 1, 0, 1, 1},
{53, 92, 0, 0, 0, 0, 1},
{99, 11, 0, 0, 7, 1, 1},
+#endif
};
static struct record *recorded;
@@ -158,7 +159,7 @@ struct cli_state *connect_one(char *share)
if (!cli_session_setup(c, username,
password, strlen(password),
password, strlen(password),
- workgroup)) {
+ lp_workgroup())) {
DEBUG(0,("session setup failed: %s\n", cli_errstr(c)));
return NULL;
}