Skip to content
Snippets Groups Projects
user avatar
Georg Großberger authored
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>
28d1f6af
Name Last commit Last update