Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
None
-
5.11.2
-
None
Description
Bug detected on linux :
I create a QTemporaryFile on device A (ex: /tmp mount on sda1)
rename this QTemporaryFile to file on device B (/home mount on sdb1)
You get "Invalid cross-device link" error.
qtRename.cpp reproduce the bug.
$ sudo mount -B source_dir target_dir
$ qtRename target_dir/file.txt
probleme come from reimplementation of QTemporaryFile::rename method that don't fallback to copy file when other methods fails.
QFile::rename use this fallback
qt-qtbase-rename_on_unix_bug.patch fix