From dd32ce9ef2c6fbc05e2fc8a738d64f76d149fd0a Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 19 Mar 2017 18:16:14 -0400 Subject: [PATCH] ... --- MagickCore/utility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { /* -- 2.40.0