Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.10
-
None
-
Windows
-
20a8a277ee0d507d2b9a369ab0c41d23ab8b2291 (qtbase/dev, 30.9.2018, 5.13)
Description
The test has the following code:
target = QDir::rootPath();
junction = "junction_root";
FileSystem::createNtfsJunction(target, junction);
This is all placed inside a QTemporaryDir. When the test ends, it calls the dtor of QTemporaryDir, which calls removeRecursively. The calls for fi.isSymLink() inside this function return false because for some reason the following is not satisfied:
if ((what & QFileSystemMetaData::LinkType)
&& data.missingFlags(QFileSystemMetaData::LinkType)) {
Then it goes on and deletes the entire root drive recursively!