[SCM] Samba Shared Repository - branch v3-5-test updated
Karolin Seeger
kseeger at samba.org
Thu Apr 7 13:08:32 MDT 2011
The branch, v3-5-test has been updated
via c9015e3 s3: Fix bug 8042: File creation on OS/X
from 6d360c9 Fix bug #7080 - Quota only shown when logged as root.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test
- Log -----------------------------------------------------------------
commit c9015e381905bb254ee61b64d99052b96b4d4913
Author: Volker Lendecke <Volker.Lendecke at SerNet.DE>
Date: Mon Apr 4 10:19:18 2011 -0700
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
-----------------------------------------------------------------------
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 154d34a..c92921e 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -352,6 +352,9 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
goto done;
}
+ /* Stat failed - ensure we don't use it. */
+ SET_STAT_INVALID(smb_fname->st);
+
/*
* A special case - if we don't have any wildcards or mangling chars and are case
* sensitive or the underlying filesystem is case insentive then searching
--
Samba Shared Repository
More information about the samba-cvs
mailing list