s4 torture: Extend the RAW-RENAME test to more fully test directory renames.
commit355c23018521db9b8e8847bbaa6e04a8ad2ef0d2
authorTim Prouty <tprouty@samba.org>
Thu, 6 Aug 2009 18:23:23 +0000 (6 11:23 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Aug 2009 12:27:29 +0000 (13 14:27 +0200)
treed54ca093b2de90be98e2c02bece26b7b94d7552a
parent3c465fcf5446b1de9e8332ba148d529c97c72489
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.
(cherry picked from commit 80cedd944c3bcee7fe44787c9730b564b2d86726)
source4/torture/raw/rename.c