port: Fix the S_IWUSR value.

Francois Gouget fgouget at free.fr
Tue Dec 9 08:15:48 CST 2008


Actually I don't see why we need it at all. It is used:
 * in server/ which is not meant to be compiled on Windows
 * in dlls/ntdll/(directory|file).c which is not meant to be used on 
   Windows and which uses S_IWGRP and others too anyway.
 * in dlls/shell32/shfldr_unixfs.c which is not meant to be used on 
   Windows either, and needs S_IWGRP and a bunch of other too anyway.

So unless some Unix system does not have it, which seems unlikely, then 
this definition should not be needed. I don't want to break stuff I 
don't understand so I'm just fixing the definition (since even the PSDK 
has the equivalent S_IWRITE macro set to 0200), but I'd be happy to send 
a patch removing it too.

 include/wine/port.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index 4f9f8ab..c467a9a 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -171,7 +171,7 @@ struct statvfs
 #ifndef S_IWUSR
-# define S_IWUSR 0
+# define S_IWUSR 0200
 /* So we open files in 64 bit access mode on Linux */

More information about the wine-patches mailing list