From 9d60e35080625ddf7c4138e81b7a5d5a67162bc9 Mon Sep 17 00:00:00 2001
From: Marcus Meissner <marcus@jet.franken.de>
Date: Sat, 4 Dec 1999 04:00:16 +0000
Subject: [PATCH] Flush handle in any access mode.

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

diff --git a/server/file.c b/server/file.c
index 5369c24c145..dd25a11c285 100644
--- a/server/file.c
+++ b/server/file.c
@@ -567,7 +567,7 @@ DECL_HANDLER(flush_file)
 {
     struct object *obj;
 
-    if ((obj = get_handle_obj( current->process, req->handle, GENERIC_WRITE, NULL )))
+    if ((obj = get_handle_obj( current->process, req->handle, 0, NULL )))
     {
         obj->ops->flush( obj );
         release_object( obj );
-- 
GitLab