mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-25 11:24:54 +02:00
...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user