From 44a750311b28f2728e4fa6170ce6a39d8e7eef8d Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@samba.org>
Date: Tue, 17 Nov 2009 23:00:09 +0100
Subject: [PATCH] s3: Fix bug 6898.

We always do pwrites and they are killed by O_APPEND.
---
 source3/smbd/open.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 16cad8a..793d58a 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1682,10 +1682,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
 	}
 #endif /* O_SYNC */
 
-	if (posix_open && (access_mask & FILE_APPEND_DATA)) {
-		flags2 |= O_APPEND;
-	}
-
 	if (!posix_open && !CAN_WRITE(conn)) {
 		/*
 		 * We should really return a permission denied error if either
-- 
1.6.0.4

