git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a82d9e4
)
smbtorture Remove random file name before we start RW2
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 22 Feb 2011 00:21:53 +0000
(11:21 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 22 Feb 2011 05:20:10 +0000
(16:20 +1100)
source3/torture/torture.c
patch
|
blob
|
history
diff --git
a/source3/torture/torture.c
b/source3/torture/torture.c
index 48eb708a70f17141caa2a7be0c4efc31073f69ff..893497ebbee3bee5684ce4fa5d5f4192181124f9 100644
(file)
--- a/
source3/torture/torture.c
+++ b/
source3/torture/torture.c
@@
-677,6
+677,10
@@
static bool rw_torture3(struct cli_state *c, char *lockfname)
if (procnum == 0)
{
+ if (!NT_STATUS_IS_OK(cli_unlink(c, lockfname, aSYSTEM | aHIDDEN))) {
+ printf("unlink failed (%s) (normal, this file should not exist)\n", cli_errstr(c));
+ }
+
if (!NT_STATUS_IS_OK(cli_open(c, lockfname, O_RDWR | O_CREAT | O_EXCL,
DENY_NONE, &fnum))) {
printf("first open read/write of %s failed (%s)\n",