https://bugs.kde.org/show_bug.cgi?id=516630
Méven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/netw | |ork/kio-extras/-/commit/24a | |1e66e027b6a4913dcdcd350570a | |3cacf3a189 Status|ASSIGNED |RESOLVED --- Comment #5 from Méven <[email protected]> --- Git commit 24a1e66e027b6a4913dcdcd350570a3cacf3a189 by Méven Car. Committed on 21/10/2026 at 09:06. Pushed by meven into branch 'master'. smb: give a file copied from a share the mtime of its source Copying files from a share to a local folder gave some of them the current time as their modification time, and always the same files. smbCopyGet() set the mtime while the destination QFile was still open. QFile keeps a write shorter than 16 KiB in its buffer, so the end of the file was written when the QFile was destroyed, after the mtime was set. The other files got the time from the "modified" metadata through utime(), so their mtime lost its fraction of a second. smbCopyGet() now flushes the file, then sets the mtime of the source with futimens(), with the precision the share reports. A failed flush is reported as a write error. M +12 -6 smb/kio_smb_dir.cpp https://invent.kde.org/network/kio-extras/-/commit/24a1e66e027b6a4913dcdcd350570a3cacf3a189 -- You are receiving this mail because: You are watching all bug changes.
