From 905e530f1caed11a80f57a94195a71ba6fc12848 Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 9 Nov 2011 18:08:43 +0000 Subject: [PATCH] --- MagickCore/magick.c | 3 ++- MagickCore/module.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MagickCore/magick.c b/MagickCore/magick.c index 555b0436d..94db46e62 100644 --- a/MagickCore/magick.c +++ b/MagickCore/magick.c @@ -1281,7 +1281,8 @@ MagickExport void MagickCoreGenesis(const char *path, Set client name and execution path. */ (void) GetExecutionPath(execution_path,MaxTextExtent); - if ((path != (const char *) NULL) && (*path != '\0')) + if ((path != (const char *) NULL) && (*path != '\0') && + (IsPathAccessible(path) != MagickFalse)) (void) CopyMagickString(execution_path,path,MaxTextExtent); GetPathComponent(execution_path,TailPath,filename); (void) SetClientName(filename); diff --git a/MagickCore/module.c b/MagickCore/module.c index 84241768a..9b4eca774 100644 --- a/MagickCore/module.c +++ b/MagickCore/module.c @@ -754,7 +754,7 @@ static MagickBooleanType GetMagickModulePath(const char *filename, case MagickImageCoderModule: default: { - directory="modules"; + directory="coders"; break; } case MagickImageFilterModule: -- 2.50.1