summaryrefslogtreecommitdiff
path: root/source/torture
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-08-04 05:42:36 +0000
committerGerald Carter <jerry@samba.org>2004-08-04 05:42:36 +0000
commitfecd5ea163ffcd1bbee5b06e05112dbff9aa71b1 (patch)
tree917402d02525c39dd42d3aed01609ac02be104b4 /source/torture
parent7cc5217c98cab4d0d970a2eb7f378319bedb6a46 (diff)
downloadsamba-fecd5ea163ffcd1bbee5b06e05112dbff9aa71b1.tar.gz
r1643: syncing all changes from 3.0 and hopefully get 3.0.6rc2 out tomorrow
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/mangle_test.c4
-rw-r--r--source/torture/torture.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/source/torture/mangle_test.c b/source/torture/mangle_test.c
index f31621b23b7..5acad2d015d 100644
--- a/source/torture/mangle_test.c
+++ b/source/torture/mangle_test.c
@@ -150,6 +150,10 @@ static void gen_name(char *name)
s[4] = 0;
}
}
+
+ /* ..... and a 100% proability of a file not ending in "." */
+ if (p[strlen(p)-1] == '.')
+ p[strlen(p)-1] = '_';
}
diff --git a/source/torture/torture.c b/source/torture/torture.c
index e3960d34061..6c3860e233e 100644
--- a/source/torture/torture.c
+++ b/source/torture/torture.c
@@ -493,7 +493,7 @@ static BOOL rw_torture2(struct cli_state *c1, struct cli_state *c2)
printf("%d\r", i); fflush(stdout);
}
- generate_random_buffer(buf, buf_size, False);
+ generate_random_buffer(buf, buf_size);
if (cli_write(c1, fnum1, 0, buf, 0, buf_size) != buf_size) {
printf("write failed (%s)\n", cli_errstr(c1));