* image.c: don't fail when the link points to an absolute path.
svn path=/trunk/mono/; revision=63989
+2006-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * image.c: don't fail when the link points to an absolute path.
+
2006-08-18 Sebastien Pouliot <sebastien@ximian.com>
* decimal.c: Remove dead code (unrequired check) in mono_decimalIncr.
}
buffer [n] = 0;
- dir = g_path_get_dirname (p);
- concat = g_build_filename (dir, buffer, NULL);
- g_free (dir);
+ if (!g_path_is_absolute (buffer)) {
+ dir = g_path_get_dirname (p);
+ concat = g_build_filename (dir, buffer, NULL);
+ g_free (dir);
+ } else {
+ concat = g_strdup (buffer);
+ }
g_free (p);
p = canonicalize_path (concat);
g_free (concat);