From: Richard Basch Date: Tue, 12 Mar 1996 19:04:45 +0000 (+0000) Subject: * kprop.c: Write a byte to the last-prop file to ensure the file X-Git-Tag: krb5-1.0-beta6~393 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d172d81439fb027047c76e832148a7c23cef27fe;p=krb5.git * kprop.c: Write a byte to the last-prop file to ensure the file modtime is updated. Simply opening the file isn't sufficient. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7609 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog index 179178171..8c2eaa918 100644 --- a/src/slave/ChangeLog +++ b/src/slave/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 12 14:01:32 1996 Richard Basch + + * kprop.c: Write a byte to the last-prop file to ensure the file + modtime is updated. Simply opening the file isn't sufficient. + Wed Mar 6 16:15:46 1996 Richard Basch * kprop.c: The credentials cache should be destroyed after any error. diff --git a/src/slave/kprop.c b/src/slave/kprop.c index 9f8a28772..c0c315cc4 100644 --- a/src/slave/kprop.c +++ b/src/slave/kprop.c @@ -701,6 +701,7 @@ void update_last_prop_file(hostname, file_name) free(file_last_prop); return; } + write(fd, "", 1); free(file_last_prop); close(fd); return;