[Wine-patches] server: Fix eterbug #4125.

Alexander Morozov amorozov на etersoft.ru
Вт Июл 21 17:21:31 MSD 2009


----------- следующая часть -----------
From 5c54d31e6fe0d2df949b4e74e2e25c100018bf04 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 21 Jul 2009 17:09:01 +0400
Subject: [PATCH] server: Fix eterbug #4125.

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

diff --git a/server/fd.c b/server/fd.c
index 8126a74..9ddd732 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -1764,7 +1764,8 @@ struct fd *open_fd( const char *name, int flags, mode_t *mode, unsigned int acce
         fd->closed = closed_fd;
         list_add_head( &inode->open, &fd->inode_entry );
 
-        if (rw_mode != O_RDWR && inode_get_lock_fd( inode ) == -1 &&
+        if (rw_mode != O_RDWR && !(st.st_mode & 0111) &&
+            inode_get_lock_fd( inode ) == -1 &&
             (!etersoft_check_cifs || !etersoft_check_cifs()))
         {
             lock_fd = open( name, O_RDWR );
-- 
1.6.3.3



Подробная информация о списке рассылки Wine-patches