[SCM] Samba Shared Repository - branch v3-6-test updated
Volker Lendecke
vlendec at samba.org
Sun Apr 3 06:58:55 MDT 2011
The branch, v3-6-test has been updated
via 546d41f s3: Fix bug 8042: File creation on OS/X
from 9b9dc24 Fix for servers that don't put a path separator at the end of the service.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit 546d41f4d435fd13fb2b54f293964ad10c58818f
Author: Volker Lendecke <vl at samba.org>
Date: Sun Apr 3 13:57:11 2011 +0200
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 at samba.org>
Autobuild-Date: Sun Apr 3 14:54:27 CEST 2011 on sn-devel-104
(cherry picked from commit 2b94169cda00e31a3b7814996abf42635735b6ff)
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/filename.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 0387721..8b0c42a 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -504,6 +504,9 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
}
}
+ /* Stat failed - ensure we don't use it. */
+ SET_STAT_INVALID(smb_fname->st);
+
/*
* Missing last component is ok - new file.
* Also deal with permission denied elsewhere.
--
Samba Shared Repository
More information about the samba-cvs
mailing list