The Samba-Bugzilla – Attachment 4983 Details for
Bug 6898
Samba duplicates file content on appending
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am format patch for 3.4.4.
0001-Fix-bug-6898-Samba-duplicates-file-content-on-app.patch (text/plain), 1.46 KB, created by
Jeremy Allison
on 2009-11-23 12:16:38 UTC
(
hide
)
Description:
git-am format patch for 3.4.4.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-11-23 12:16:38 UTC
Size:
1.46 KB
patch
obsolete
>From 878ff53bf90cbe083ab8e3773d7d2b28d5560046 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Mon, 23 Nov 2009 10:15:21 -0800 >Subject: [PATCH] Fix bug #6898 - Samba duplicates file content on appending > Clients using a Windows open call should not be able to set > FILE_FLAG_POSIX_SEMANTICS in an open. > Jeremy. > >--- > source3/smbd/nttrans.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c >index 9f30f06..6f25c0d 100644 >--- a/source3/smbd/nttrans.c >+++ b/source3/smbd/nttrans.c >@@ -450,6 +450,11 @@ void reply_ntcreate_and_X(struct smb_request *req) > flags = IVAL(req->vwv+3, 1); > access_mask = IVAL(req->vwv+7, 1); > file_attributes = IVAL(req->vwv+13, 1); >+ /* >+ * Bug #6898 - clients using Windows opens should >+ * never be able to set this attribute. >+ */ >+ file_attributes &= ~FILE_FLAG_POSIX_SEMANTICS; > share_access = IVAL(req->vwv+15, 1); > create_disposition = IVAL(req->vwv+17, 1); > create_options = IVAL(req->vwv+19, 1); >@@ -900,6 +905,11 @@ static void call_nt_transact_create(connection_struct *conn, > flags = IVAL(params,0); > access_mask = IVAL(params,8); > file_attributes = IVAL(params,20); >+ /* >+ * Bug #6898 - clients using Windows opens should >+ * never be able to set this attribute. >+ */ >+ file_attributes &= ~FILE_FLAG_POSIX_SEMANTICS; > share_access = IVAL(params,24); > create_disposition = IVAL(params,28); > create_options = IVAL(params,32); >-- >1.5.4.3 >
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
Actions:
View
Attachments on
bug 6898
:
4957
|
4958
|
4959
|
4960
|
4962
|
4982
|
4983
|
4984
|
4985
|
4987
|
4990