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)
committerTim Prouty <tprouty@samba.org>
Fri, 7 Aug 2009 00:07:49 +0000 (17:07 -0700)
commit09e9904f18634b135944f466c48c4be1a43b4272
treea3c09275ba4291407dd85b7ae290819a0d98df1b
parent890dfe003c91f8df737e5e2e4e440e1a9f416ae8
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