From b29fbc4f00bf4ac76e6b8579bc3e08b72a9a5490 Mon Sep 17 00:00:00 2001
From: Dmitry Timoshkov <dmitry@baikal.ru>
Date: Wed, 2 Oct 2013 12:19:08 +0900
Subject: [PATCH] server: Set the unix file write mode bit also for
 FILE_APPEND_DATA access.

---
 server/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/file.c b/server/file.c
index 2ecf97c7b8e..94d3060785d 100644
--- a/server/file.c
+++ b/server/file.c
@@ -459,7 +459,7 @@ static mode_t file_access_to_mode( unsigned int access )
 
     access = generic_file_map_access( access );
     if (access & FILE_READ_DATA)  mode |= 4;
-    if (access & FILE_WRITE_DATA) mode |= 2;
+    if (access & (FILE_WRITE_DATA|FILE_APPEND_DATA)) mode |= 2;
     if (access & FILE_EXECUTE)    mode |= 1;
     return mode;
 }
-- 
GitLab