s3: Fix a bug in renames of directories
commit06ab965b72ba477505d297ab72156136ab981e93
authorTim Prouty <tprouty@samba.org>
Thu, 6 Aug 2009 22:53:33 +0000 (6 15:53 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Aug 2009 14:05:12 +0000 (11 16:05 +0200)
tree3badb603b3564dd9bba7b7f33ae273b956f32d17
parent536946c706b66d432d60c990f28ff0ed5861fa44
s3: Fix a bug in renames of directories

Recently code was added to match windows semantics of denying the
rename of a directory if there are open files underneath it.  This
does partly match windows semantics, but it turns out the rename
should be allowed if the open file handle is for the directory being
renamed, or for a stream on the directory being renamed.  This patch
refines the check to better follow these rename semantics.

Addresses bug #6620.
source3/smbd/files.c