The Samba-Bugzilla – Attachment 6374 Details for
Bug 8042
Newly create files are always failed with NT_STATUS_FILE_IS_A_DIRECTORY
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixed patch attribution - removed extraneous "else".
0001-s3-Fix-bug-8042-File-creation-on-OS-X.patch (text/plain), 1.13 KB, created by
Jeremy Allison
on 2011-04-04 17:21:18 UTC
(
hide
)
Description:
Fixed patch attribution - removed extraneous "else".
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2011-04-04 17:21:18 UTC
Size:
1.13 KB
patch
obsolete
>From 741a03fb497973d45f111596ca64811c941b628c Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <Volker.Lendecke@SerNet.DE> >Date: Mon, 4 Apr 2011 10:19:18 -0700 >Subject: [PATCH] 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 | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >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 >-- >1.7.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 8042
:
6351
|
6352
|
6369
|
6370
|
6373
| 6374