Commit 2240bc096 for imagemagick.org
commit 2240bc096f7430b5829b88045572245759442326
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Fri Feb 6 14:23:35 2026 +0100
Added comment about the limitations of realpath.
diff --git a/MagickCore/utility-private.h b/MagickCore/utility-private.h
index dea9cf71a..f39480d33 100644
--- a/MagickCore/utility-private.h
+++ b/MagickCore/utility-private.h
@@ -104,6 +104,10 @@ static inline char *realpath_utf8(const char *path)
{
#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__)
#if defined(MAGICKCORE_HAVE_REALPATH)
+ /*
+ This does not work for non-existing files so we should fine another way
+ to do this in the future. This is only a possible issue when writing files.
+ */
return(realpath(path,(char *) NULL));
#else
return(AcquireString(path));