From d172d81439fb027047c76e832148a7c23cef27fe Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Tue, 12 Mar 1996 19:04:45 +0000 Subject: [PATCH] * 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 --- src/slave/ChangeLog | 5 +++++ src/slave/kprop.c | 1 + 2 files changed, 6 insertions(+) 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; -- 2.26.2