From: Cristy Date: Sat, 7 Oct 2017 20:33:00 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-8~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32a9a83f3cb0deaa761b385ece01a5ddbb607bb5;p=imagemagick ... --- diff --git a/MagickCore/module.c b/MagickCore/module.c index 5539ccda6..24487e16a 100644 --- a/MagickCore/module.c +++ b/MagickCore/module.c @@ -582,6 +582,15 @@ static MagickBooleanType GetMagickModulePath(const char *filename, (void) ConcatenateMagickString(path,DirectorySeparator, MagickPathExtent); (void) ConcatenateMagickString(path,filename,MagickPathExtent); +#if defined(MAGICKCORE_HAVE_REALPATH) + { + char + resolved_path[PATH_MAX+1]; + + if (realpath(path,resolved_path) != (char *) NULL) + (void) CopyMagickString(path,resolved_path,MagickPathExtent); + } +#endif if (IsPathAccessible(path) != MagickFalse) { module_path=DestroyString(module_path);