[Wine-patches] server: Do not check for locks support for CIFS.

Alexander Morozov amorozov на etersoft.ru
Ср Июл 22 16:09:19 MSD 2009


----------- следующая часть -----------
From bb1a7e3263ad9b6e1b71348675332318fc9303ca Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 22 Jul 2009 15:56:34 +0400
Subject: [PATCH] server: Do not check for locks support for CIFS.

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

diff --git a/server/fd.c b/server/fd.c
index bc6a4e1..146e918 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -1174,7 +1174,7 @@ static int set_unix_lock( struct fd *fd, file_pos_t start, file_pos_t end, int t
         case EACCES:
             /* check whether locks work at all on this file system */
 	    TRACE(stderr,"EACCES\n");
-            if (fcntl( fd->unix_fd, F_GETLK, &fl ) != -1)
+            if (fd->cifs || (fcntl( fd->unix_fd, F_GETLK, &fl ) != -1))
             {
                 set_error( STATUS_FILE_LOCK_CONFLICT );
                 return 0;
-- 
1.6.3.3



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