another small windows fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mkdir on windows doesnt support unix file permissions.

Changelog: porting fix

cvs diff -u directory.c 
Index: directory.c
===================================================================
RCS file: /home/wine/wine/files/directory.c,v
retrieving revision 1.50
diff -u -r1.50 directory.c
--- directory.c	17 Aug 2002 00:43:19 -0000	1.50
+++ directory.c	21 Aug 2002 08:58:10 -0000
@@ -409,7 +409,11 @@
         return FALSE;
     }
     if (!DOSFS_GetFullName( path, FALSE, &full_name )) return 0;
+#ifdef _WINDOWS 
+    if (mkdir( full_name.long_name ) == -1) {
+#else
     if (mkdir( full_name.long_name, 0777 ) == -1) {
+#endif
         WARN_(file)("Error '%s' trying to create directory '%s'\n", strerror(errno),
full_name.long_name);
 	/* the FILE_SetDosError() generated error codes don't match the
 	 * CreateDirectory ones for some errnos */

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux