Commit 60d8ea37d for imagemagick.org
commit 60d8ea37d9934945a50f1951578b232595713bc6
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Mar 27 22:07:03 2026 -0400
pattern is write only
diff --git a/MagickCore/blob.c b/MagickCore/blob.c
index c78a878b5..262013fa8 100644
--- a/MagickCore/blob.c
+++ b/MagickCore/blob.c
@@ -386,7 +386,7 @@ MagickExport MagickBooleanType BlobToFile(char *filename,const void *blob,
if (*filename == '\0')
file=AcquireUniqueFileResource(filename);
else
- file=open_utf8(filename,O_RDWR | O_CREAT | O_EXCL | O_BINARY,P_MODE);
+ file=open_utf8(filename,O_WRONLY | O_CREAT | O_EXCL | O_BINARY,P_MODE);
if (file == -1)
{
ThrowFileException(exception,BlobError,"UnableToWriteBlob",filename);