Add another torture test inspired by George @ Apple.
authorJeremy Allison <jra@samba.org>
Thu, 26 Feb 2009 18:13:57 +0000 (10:13 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 26 Feb 2009 18:13:57 +0000 (10:13 -0800)
commitbcadb77c18f9ed9be22762871617f1a12294e88c
tree89788a44851ffe793f2751ef87686ae5f6bf0fb6
parentb934f509ed222eb49e8b24ca111361e563434646
Add another torture test inspired by George @ Apple.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED. This
is connected to the test case where the close was
failing due to a delayed write on a file not being
able to succeed when Samba allowed the containing
directory to be renamed.

I will fix this in the server shortly (this should be done
across connections also but with will be very hard
in Samba - would need a full scan of the open file
db on every directory rename) - so I will fix for
the local case first (scanning local file opens
inside an smbd is cheap).

Jeremy.
source4/torture/raw/rename.c