Vim detects a file on a VMS Samba share has changed when it
has not
BG - Ben Armstrong
BArmstrong at dymaxion.ca
Fri Apr 1 14:44:52 GMT 2005
On Thu, 2005-03-31 at 21:54 -0500, John E. Malmberg wrote:
> On UNIX, the file modification date is only changed if the actual file
> was changed.
>
> On OpenVMS, the file modification date is updated because the file was
> opened for write.
That's interesting. I had previously thought dates weren't modified
when I edited the file. However, I now see that Revised date is
changed, as you have indicated.
When I create a test file that I own, before editing it with Vim I see
these dates on VMS:
Created: 1-APR-2005 10:29:24.48
Revised: 1-APR-2005 10:29:25.41 (1)
During the Vim editing session (but before writing the file) I see this:
Created: 1-APR-2005 10:29:24.00
Revised: 1-APR-2005 10:29:24.00 (5)
However, the error is not triggered. In fact, when *I* own the file,
the error is never is triggered.
Taking a file owned by someone else, I see these dates before editing:
Created: 9-AUG-2004 10:01:22.00
Revised: 29-MAR-2005 10:16:11.57 (38)
Immediately after editing, it looks like this:
Created: 9-AUG-2004 10:01:22.00
Revised: 1-APR-2005 10:34:16.82 (42)
Then when I finally see the warning displayed, it looks like this:
Created: 9-AUG-2004 10:01:22.00
Revised: 1-APR-2005 10:35:57.40 (50)
Again, this is without actually writing anything to the file. So yes,
the Revised date is constantly updated by Vim (actualy Vim + Cream which
turns on a bunch of features, including this business about constantly
checking the original file for changes).
But please explain, then, if it is a Revised date artefact, why I am
only seeing the problem when the owner of the original file is not me.
Does that make sense?
Ben
More information about the samba-vms
mailing list