Remove realpath
authorMiguel de Icaza <miguel@gnome.org>
Wed, 20 Jan 2010 16:35:57 +0000 (16:35 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 20 Jan 2010 16:35:57 +0000 (16:35 -0000)
svn path=/trunk/mono/; revision=149916

mono/metadata/assembly.c

index 4e1cd840e4b74caa484e1387a708225cf1a7f14e..2a5e7fcb3acf661eaf1c442602b130f9f42131eb 100644 (file)
@@ -571,10 +571,8 @@ mono_set_rootdir (void)
                gchar buf[4096];
                guint buf_size = sizeof (buf);
  
-               name = NULL;
-               if (_NSGetExecutablePath (buf, &buf_size) == 0) {
-                       name = realpath (buf, NULL);
-               }
+               if (_NSGetExecutablePath (buf, &buf_size) == 0)
+                       name = g_strdup (buf);
  
                if (name == NULL) {
                        fallback ();