Project

General

Profile

Actions

Bug #88524

closed

rmdir not respecting POSIX standard - missing files

Added by Pascal Christen almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-06-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
CodingNight
Complexity:
Is Regression:
Sprint Focus:

Description

Hi

Having a problem with typo3 and it's own written rmdir function: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L2105

POSIX standard says the following:

If a file is removed from or added to the directory after 
the most recent call to opendir() or rewinddir(), whether 
a subsequent call to readdir() returns an entry for that file is unspecified

So the problem is, that it doesn't return all files while deleting it - for more details read the issue about the same topic here: https://github.com/emscripten-core/emscripten/issues/2528

As a consequence, e.g. deleting extensions does not work because it did not delete all files.

Thanks, greetings Pascal

Actions

Also available in: Atom PDF