ソースを参照

2004-07-09 Atsushi Enomoto <[email protected]>

	* aot.c : Reverting the previous fix. This time it broke linux build.

svn path=/trunk/mono/; revision=30912
Atsushi Eno 21 年 前
コミット
3622cdcf9e
2 ファイル変更6 行追加2 行削除
  1. 4 0
      mono/mini/ChangeLog
  2. 2 2
      mono/mini/aot.c

+ 4 - 0
mono/mini/ChangeLog

@@ -1,3 +1,7 @@
+2004-07-09  Atsushi Enomoto  <[email protected]>
+
+	* aot.c : Reverting the previous fix. This time it broke linux build.
+
 2004-07-09  Atsushi Enomoto  <[email protected]>
 
 	* aot.c : quick cygwin build fix. mkdir() with two args does not exist.

+ 2 - 2
mono/mini/aot.c

@@ -144,7 +144,7 @@ create_cache_structure (void)
 	tmp = g_build_filename (home, ".mono", NULL);
 	if (!g_file_test (tmp, G_FILE_TEST_IS_DIR)) {
 		mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_AOT, "AOT creating directory %s", tmp);
-		err = mkdir (tmp);
+		err = mkdir (tmp, 0777);
 		if (err) {
 			mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_AOT, "AOT failed: %s", g_strerror (errno));
 			g_free (tmp);
@@ -155,7 +155,7 @@ create_cache_structure (void)
 	tmp = g_build_filename (home, ".mono", "aot-cache", NULL);
 	if (!g_file_test (tmp, G_FILE_TEST_IS_DIR)) {
 		mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_AOT, "AOT creating directory %s", tmp);
-		err = mkdir (tmp);
+		err = mkdir (tmp, 0777);
 		if (err) {
 			mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_AOT, "AOT failed: %s", g_strerror (errno));
 			g_free (tmp);