Dmitry Timoshkov : server: Set the unix file write mode bit also for FILE_APPEND_DATA access.

Alexandre Julliard julliard at winehq.org
Thu Oct 3 15:18:02 CDT 2013


Module: wine
Branch: master
Commit: b29fbc4f00bf4ac76e6b8579bc3e08b72a9a5490
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b29fbc4f00bf4ac76e6b8579bc3e08b72a9a5490

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Oct  2 12:19:08 2013 +0900

server: Set the unix file write mode bit also for FILE_APPEND_DATA access.

---

 server/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/file.c b/server/file.c
index 2ecf97c..94d3060 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;
 }




More information about the wine-cvs mailing list