s3: Call fd_close from close_directory
authorTim Prouty <tprouty@samba.org>
Thu, 27 Nov 2008 00:47:14 +0000 (16:47 -0800)
committerTim Prouty <tprouty@samba.org>
Tue, 9 Dec 2008 22:51:48 +0000 (14:51 -0800)
commitb3c785f22edeff5f731af95ec1252517c4677451
tree012d70a40c32b21172e71e52a3f2b150a9c20c6c
parent2053f77b3c71ad40a875614b98e547fd558375ad
s3: Call fd_close from close_directory

Some implementations of SMB_VFS_CREATE_FILE implementations actually
keep an fd open for directories just as files.  In this case it is
necessary to call fd_close when closing directories.  This is safe
because fd_close is a no-op when fd == -1, which is true for directory
opens originating from open.c (the default SMB_VFS_CREATE_FILE
implementation).
source3/smbd/close.c