From dc217d0180ce964d4a4cb9abf505c7654eab658d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 22 Jan 2014 11:02:41 -0800 Subject: Fix miscellaneous update-game-score bugs. * configure.ac (difftime): Remove. * lib/update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove. (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage. (read_scores, write_scores): Check for fclose failure. (write_scores): Use fchmod, not chmod, to avoid a race. (lock_file): Fix test for out-of-date lock file; it was reversed. Use ordinary subtraction rather than difftime; since we're already assuming POSIX we don't need to worry about the possibility of time_t being a magic cookie. --- lib-src/ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib-src/ChangeLog') diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a354f832f32..0d06a926bae 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,15 @@ +2014-01-22 Paul Eggert + + Fix miscellaneous update-game-score bugs. + * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove. + (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage. + (read_scores, write_scores): Check for fclose failure. + (write_scores): Use fchmod, not chmod, to avoid a race. + (lock_file): Fix test for out-of-date lock file; it was reversed. + Use ordinary subtraction rather than difftime; since we're already + assuming POSIX we don't need to worry about the possibility of + time_t being a magic cookie. + 2014-01-19 Paul Eggert update-game-score fixes for -m and integer overflow (Bug#16428) -- cgit v1.2.1