From 32a9a83f3cb0deaa761b385ece01a5ddbb607bb5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 7 Oct 2017 16:33:00 -0400 Subject: [PATCH] ... --- MagickCore/module.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.40.0