[Mono-list] mono patch

Pablo Baena pbaena@uol.com.ar
11 Jun 2003 01:01:29 +0000


--=-t38JlEbxTWNyVQ1EkqDx
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi guys!
I had a problem that when ~/.wapi didn't exist, it didn't get created,
and the problem is solved with this patch.

Can you apply? Thank you!
-- 
Pablo Baena <pbaena@uol.com.ar>

--=-t38JlEbxTWNyVQ1EkqDx
Content-Disposition: attachment; filename=wapi_patch.txt
Content-Type: text/plain; name=wapi_patch.txt; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

? autom4te.cache
? data/Makefile
? data/Makefile.in
? data/config
? mono/arch/alpha/Makefile
? mono/arch/alpha/Makefile.in
? mono/arch/s390/Makefile
? mono/arch/s390/Makefile.in
? mono/metadata/monosn
? mono/mini/cpu-g4.h
? mono/mini/mono
? scripts/cilc
? scripts/ilasm
? scripts/monoresgen
? scripts/secutil
? scripts/sqlsharp
Index: mono/io-layer/shared.c
===================================================================
RCS file: /mono/mono/mono/io-layer/shared.c,v
retrieving revision 1.11
diff -u -r1.11 shared.c
--- mono/io-layer/shared.c	5 Jun 2003 21:02:19 -0000	1.11
+++ mono/io-layer/shared.c	11 Jun 2003 04:06:27 -0000
@@ -102,12 +102,11 @@
 	 * mkdir() errors, because on any error the open() call will
 	 * report the problem.
 	 */
+ 	g_snprintf (file, _POSIX_PATH_MAX, "%s", filename);
 	dir=g_path_get_dirname (file);
 	mkdir (dir, 0755);
 	g_free (dir);
 		
-	g_snprintf (file, _POSIX_PATH_MAX, "%s", filename);
-	
 	return(file);
 }
 

--=-t38JlEbxTWNyVQ1EkqDx--