From: Cristy Date: Sun, 19 Mar 2017 22:16:14 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-4~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd32ce9ef2c6fbc05e2fc8a738d64f76d149fd0a;p=imagemagick ... --- diff --git a/MagickCore/utility.c b/MagickCore/utility.c index 06c345b80..d5f9f0d8e 100644 --- a/MagickCore/utility.c +++ b/MagickCore/utility.c @@ -1233,7 +1233,7 @@ MagickExport void GetPathComponent(const char *path,PathType type, if (*p == '\0') break; } - if ((*p == ':') && (IsPathDirectory(path) < 0) && + if ((p != component) && (*p == ':') && (IsPathDirectory(path) < 0) && (IsPathAccessible(path) == MagickFalse)) { /*