s3: Fix a bug in renames of directories
authorTim Prouty <tprouty@samba.org>
Thu, 6 Aug 2009 22:53:33 +0000 (15:53 -0700)
committerTim Prouty <tprouty@samba.org>
Fri, 7 Aug 2009 00:07:50 +0000 (17:07 -0700)
commit457191e9f396898b8a511cf860f24986f36fd879
treea963611eeb986e120bdbd86c91930efeb79886d2
parent09e9904f18634b135944f466c48c4be1a43b4272
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.
source3/smbd/files.c