From: cristy Date: Wed, 9 Nov 2011 18:08:43 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=905e530f1caed11a80f57a94195a71ba6fc12848;p=imagemagick --- 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: