Skip to content

Commit

Permalink
conditionally set errno to ESTALE
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 29, 2023
1 parent 9b9eb2c commit fc58710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions magick/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,9 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,

if (IsImageTTLExpired(image) != MagickFalse)
{
#if defined(ESTALE)
errno=ESTALE;
#endif
(void) ThrowMagickException(exception,GetMagickModule(),
ResourceLimitError,"TimeLimitExceeded","`%s'",image->filename);
return((Cache) NULL);
Expand Down

0 comments on commit fc58710

Please sign in to comment.