This commit is contained in:
Cristy
2017-10-07 16:33:00 -04:00
parent 3696a78ec9
commit 32a9a83f3c
+9
View File
@@ -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);