s3: Fix bug 8042: File creation on OS/X
commit546d41f4d435fd13fb2b54f293964ad10c58818f
authorVolker Lendecke <vl@samba.org>
Sun, 3 Apr 2011 11:57:11 +0000 (3 13:57 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 3 Apr 2011 13:00:49 +0000 (3 15:00 +0200)
treeea83af3b655141971137dca0595334bc49c378ad
parent9b9dc24a26a4fbe73b3f958a14ce1d1ffad0a6d1
s3: Fix bug 8042: File creation on OS/X

With a case insensitive file system the stat cache lookup leaked the parent
directorys stat information from unix_convert into the smb_filename. This led
open_file_ntcreate to believe it just created a directory.

In the case where we do the search we already invalidate the stat struct.

Thanks to TAKAHASHI Motonobu for insisting! :-)

Volker

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr  3 14:54:27 CEST 2011 on sn-devel-104
(cherry picked from commit 2b94169cda00e31a3b7814996abf42635735b6ff)
source3/smbd/filename.c