Skip to content

Commit

Permalink
only request a unique file name when system:shred is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 20, 2024
1 parent 2ebf5b1 commit 97937f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magick/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ MagickExport MagickBooleanType AcquireUniqueSymbolicLink(const char *source,
char
*passes;

(void) AcquireUniqueFilename(destination);
(void) RelinquishUniqueFileResource(destination);
passes=GetPolicyValue("system:shred");
if (passes != (char *) NULL)
passes=DestroyString(passes);
else
{
(void) AcquireUniqueFilename(destination);
(void) RelinquishUniqueFileResource(destination);
if (*source == *DirectorySeparator)
{
if (symlink(source,destination) == 0)
Expand Down

0 comments on commit 97937f1

Please sign in to comment.