2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 9 Jul 2004 00:51:07 +0000 (00:51 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 9 Jul 2004 00:51:07 +0000 (00:51 -0000)
* aot.c : quick cygwin build fix. mkdir() with two args does not exist.

svn path=/trunk/mono/; revision=30904

mono/mini/ChangeLog
mono/mini/aot.c

index 9840422035d096b63b2561152657c9528f189375..f500056a8443786540aad982a63b2c859c1ebd87 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * aot.c : quick cygwin build fix. mkdir() with two args does not exist.
+
 2004-07-08  Zoltan Varga  <vargaz@freemail.hu>
 
        * mini.c (handle_stack_args): Remove some more debugging code.
index 5f8f88c07f7312d76d75ae0f73ebe3522d206446..6dca5b452101a58159fbd02ee203b4bb432308d0 100644 (file)
@@ -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, 0777);
+               err = mkdir (tmp);
                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, 0777);
+               err = mkdir (tmp);
                if (err) {
                        mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_AOT, "AOT failed: %s", g_strerror (errno));
                        g_free (tmp);