s3: Fix a bug in renames of directories
commit3c465fcf5446b1de9e8332ba148d529c97c72489
authorTim Prouty <tprouty@samba.org>
Thu, 6 Aug 2009 22:53:33 +0000 (6 15:53 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Aug 2009 12:27:29 +0000 (13 14:27 +0200)
tree134654ae34a3fa155f43561533d39dab27d59961
parentea155f5ba0b7554f2951c35abb3533ea06b75cc2
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.
(cherry picked from commit 06ab965b72ba477505d297ab72156136ab981e93)
source3/smbd/files.c