aboutsummaryrefslogtreecommitdiff
path: root/src/slave
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1996-03-12 19:04:45 +0000
committerRichard Basch <probe@mit.edu>1996-03-12 19:04:45 +0000
commitd172d81439fb027047c76e832148a7c23cef27fe (patch)
treec5080fc544bcd90856f82171c556975907494b29 /src/slave
parent9de25f5b4de8e0a168be70ed8414b6c7538777ed (diff)
downloadkrb5-d172d81439fb027047c76e832148a7c23cef27fe.zip
krb5-d172d81439fb027047c76e832148a7c23cef27fe.tar.gz
krb5-d172d81439fb027047c76e832148a7c23cef27fe.tar.bz2
* 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
Diffstat (limited to 'src/slave')
-rw-r--r--src/slave/ChangeLog5
-rw-r--r--src/slave/kprop.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog
index 1791781..8c2eaa9 100644
--- a/src/slave/ChangeLog
+++ b/src/slave/ChangeLog
@@ -1,3 +1,8 @@
+Tue Mar 12 14:01:32 1996 Richard Basch <basch@lehman.com>
+
+ * 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 <basch@lehman.com>
* kprop.c: The credentials cache should be destroyed after any error.
diff --git a/src/slave/kprop.c b/src/slave/kprop.c
index 9f8a287..c0c315c 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;