[800] in Kerberos-V5-bugs
Re: kdb5_edit doesn't update mod time of existing 'ok' file
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Thu Sep 29 16:55:05 1994
Date: Thu, 29 Sep 1994 16:55:01 +0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: "Jonathan I. Kamens" <jik@cam.ov.com>
Cc: krb5-bugs@MIT.EDU
In-Reply-To: [696]
Date: Fri, 2 Sep 1994 10:45:26 -0400
From: "Jonathan I. Kamens" <jik@cam.ov.com>
The code in kdb5_edit's dump.c to create an 'ok' file opens the file
and then closes it, assuming that that will update the mod time on the
file.
If the file doesn't exist before that operation, it works, but if it
already exists, it doesn't on some systems. For example, on SunOS
4.1.3, all file access is done by mapping files into memory, and if
you don't actually write to an existing file after opening it, its mod
time isn't updated.
OK, I've applied your suggested fix. Thanks!
- Ted