s3: Fix bug 8042: File creation on OS/X
commitc9015e381905bb254ee61b64d99052b96b4d4913
authorVolker Lendecke <Volker.Lendecke@SerNet.DE>
Mon, 4 Apr 2011 17:19:18 +0000 (4 10:19 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 7 Apr 2011 19:11:06 +0000 (7 21:11 +0200)
tree755b224152d457ca3325d8a0c97aada9c6e51c04
parent6d360c9e5db64fbd96d353013b7836d771935b6d
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
source3/smbd/filename.c