]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 9 Nov 2011 18:08:43 +0000 (18:08 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 9 Nov 2011 18:08:43 +0000 (18:08 +0000)
MagickCore/magick.c
MagickCore/module.c

index 555b0436db31e6bddc939544fbda16ff83fba4e4..94db46e62d352a105bfbe30f3722389b6b3a1e71 100644 (file)
@@ -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);
index 84241768a85fe861d705f3623f5519b9b85f3c92..9b4eca774ddb16cad238d02d452463dcaac20d12 100644 (file)
@@ -754,7 +754,7 @@ static MagickBooleanType GetMagickModulePath(const char *filename,
         case MagickImageCoderModule:
         default:
         {
-          directory="modules";
+          directory="coders";
           break;
         }
         case MagickImageFilterModule: