https://bugs.kde.org/show_bug.cgi?id=363599

--- Comment #8 from Paul Krause <paul_krause_1...@t-online.de> ---
Thanks.
Please have a look at the "if (!updateFileTimeStamp)" block of the
"saveOperations" function.
image->writeMetadata() modifies the sidecar file. The original file, including
its mtime (modification time), are thus never changed.
However, the variable filePath points to the original file. The call to utime
(or Windows equivalent) unnecessarily sets the mtime (modification time) and
atime (access time) of the original file, and automatically the ctime too.



Regarding the access rights and exiv2, I think, yes the ctime would change, but
Exiv2 would not "have to do this".
However, I cannot see a change of access rights in the strace output nor on the
files. Does a synchronization should happen?

The technical precise answer is that access rights can be equal, and can be
compared, independently from the ctimes of the files.
The ctime (time of last status change) cannot be manipulated directly.
But, setting the access rights on a file, the Linux kernel automatically
updates the ctime of the file too.
Synchronizing, unequal, access rights thus does not has to, but also cannot
avoid, modifying the ctime of at least one of the files.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to