summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-19 12:47:31 +0200
committerVolker Lendecke <vl@samba.org>2008-07-19 12:47:31 +0200
commit853ef0d5ef79b3187bd706f08d842170bc625cfd (patch)
treead417a56e09d662b762235d8ea81afa4bb95185d /source4/torture/raw
parent3408a2d18fa61e2a7e3b3e05cc3c454e5e15f2ce (diff)
downloadsamba-853ef0d5ef79b3187bd706f08d842170bc625cfd.tar.gz
samba-853ef0d5ef79b3187bd706f08d842170bc625cfd.tar.bz2
samba-853ef0d5ef79b3187bd706f08d842170bc625cfd.zip
Fix RAW-OPEN against Samba3
This test assumed that fnums are recycled immediately after a close. This is not true on Samba 3. Andrew B., I assume this is just a bug in the test. Assuming recycled fnums might be true on Windows and Samba 4, but I don't think we should assume this everywhere. Volker (This used to be commit a4c3a59d47b2b1c794eda556d252c61907be1b3c)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/raw/open.c b/source4/torture/raw/open.c
index 1901338e21..b6979fa0d9 100644
--- a/source4/torture/raw/open.c
+++ b/source4/torture/raw/open.c
@@ -983,6 +983,7 @@ static bool test_nttrans_create(struct smbcli_state *cli, struct torture_context
io.ntcreatex.in.create_options = create_option;
status = smb_raw_open(cli->tree, tctx, &io);
CHECK_STATUS(status, NT_STATUS_OK);
+ fnum = io.ntcreatex.out.file.fnum;
CHECK_VAL(io.ntcreatex.out.oplock_level, 0);
CHECK_VAL(io.ntcreatex.out.create_action, NTCREATEX_ACTION_EXISTED);