wineserver: Don't use O_CREAT and O_EXCL when attempting to open directories.
diff --git a/server/fd.c b/server/fd.c
index 0d33e77..f7716d1 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -1582,7 +1582,7 @@
         /* if we tried to open a directory for write access, retry read-only */
         if (errno != EISDIR ||
             !(access & FILE_UNIX_WRITE_ACCESS) ||
-            (fd->unix_fd = open( name, O_RDONLY | (flags & ~O_TRUNC), *mode )) == -1)
+            (fd->unix_fd = open( name, O_RDONLY | (flags & ~(O_TRUNC | O_CREAT | O_EXCL)), *mode )) == -1)
         {
             file_set_error();
             goto error;