diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-02-22 11:21:53 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-02-22 16:20:10 +1100 |
commit | b73cfabdf5cc28a91a72df8b64cf57021e08f0b0 (patch) | |
tree | a26f21635dda1113934a5c252c3ede3f180fbda9 /source3 | |
parent | a82d9e4e72d624916b1e12393a73a4d79ae080d2 (diff) | |
download | samba-b73cfabdf5cc28a91a72df8b64cf57021e08f0b0.tar.gz samba-b73cfabdf5cc28a91a72df8b64cf57021e08f0b0.tar.bz2 samba-b73cfabdf5cc28a91a72df8b64cf57021e08f0b0.zip |
smbtorture Remove random file name before we start RW2
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/torture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 48eb708a70..893497ebbe 100644 --- 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", |