The Samba-Bugzilla – Bug 4779
modification time inconsistency
Last modified: 2007-07-13 08:32:54 UTC
Some Windows utilities rely on "touch"ing (changing the mod time on) zero-length files in a folder for the purpose of judging when that folder was last accessed. This works fine on mapped windows servers, and from the local disk, but from a Samba (v3.0.22) volume, the mod time doesn't change unless there was an actual data change within the file. (ie, when you select "save" in notepad, it should change the mod time of an empty file, even if you don't change the contents. From Samba, the mod time isn't changed without changing the contents.).
Example software that relies on this functionality:
Wonderware SCADA software
Created attachment 2809 [details]
Patch for 3.0.25b
I need to add a Samba4 torture test for this case to ensure we
understand the interactions with "last write".
Created attachment 2810 [details]
This should be the correct patch - ignore the previous one. This one should play nicely with MS-Office.
Should be fixed with rev. 23855 - for 3.0.25c. Please re-open if not.