s4 torture: Extend the RAW-RENAME test to more fully test directory renames.
authorTim Prouty <tprouty@samba.org>
Thu, 6 Aug 2009 18:23:23 +0000 (11:23 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Aug 2009 14:05:58 +0000 (16:05 +0200)
commit80cedd944c3bcee7fe44787c9730b564b2d86726
treea6e9e46a5deebe299987023a185275c9fbf8713c
parent06ab965b72ba477505d297ab72156136ab981e93
s4 torture: Extend the RAW-RENAME test to more fully test directory renames.

The existing test was only covering files opened underneath the
directory that was being renamed.  It is not uncommon for windows
clients to actually hold a read-only handle to a directory open across
the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED.
Additionally, holding a handle open to a stream on the directory is
also allowed.
source4/torture/raw/rename.c