Skip to content
Snippets Groups Projects
Commit 28d1f6af authored by Georg Großberger's avatar Georg Großberger Committed by Susanne Moog
Browse files

[BUGFIX] Ensure all files in a directory are deleted

The function readdir may skip files inside a directory when
its content is changed, like a file being deleted. This can
cause not all files inside being deleted

To avoid this, we collect all entries inside a directory and
close the read descriptor before deleting all entries inside.

Resolves: #88524
Releases: master, 9.5
Change-Id: I06168e77dccc41ae60b49abd7644ee3748e85588
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61408


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarMarco Bresch <marco.bresch@starfinanz.de>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarMatthias Vogel <typo3@kanti.de>
Reviewed-by: default avatarMarc von Schalscha <msa@starfinanz.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent 9d7d35d5
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment