aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2014-01-23 09:59:46 -0800
committerPaul Eggert2014-01-23 09:59:46 -0800
commit6c9cbdf04f11b7799ccaef817a5cc79fe6dac02c (patch)
tree8d6a57c8e56280e08e038afb2ad1e9289824ac43 /lib-src/ChangeLog
parented44be700c5acf5ca2ffcf059c1e3a1640e33a5f (diff)
downloademacs-6c9cbdf04f11b7799ccaef817a5cc79fe6dac02c.tar.gz
emacs-6c9cbdf04f11b7799ccaef817a5cc79fe6dac02c.zip
Document 2014-01-22T19:02:41Z!eggert@cs.ucla.edu better.
Diffstat (limited to 'lib-src/ChangeLog')
-rw-r--r--lib-src/ChangeLog24
1 files changed, 19 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 6f4f3cd86e3..88c30989c75 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -7,13 +7,27 @@
7 7
8 Fix miscellaneous update-game-score bugs. 8 Fix miscellaneous update-game-score bugs.
9 * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove. 9 * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove.
10 (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage. 10 (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage,
11 (read_scores, write_scores): Check for fclose failure. 11 as that leads to undefined behavior, which is a bad thing
12 particularly in a setuid program.
13 (read_scores, write_scores): Check for fclose failure; on some
14 systems, I/O errors are not reported by primitives like getc and
15 putc, but instead are delayed until fclose, so fclose failures
16 should be diagnosed like other read and write errors.
12 (write_scores): Use fchmod, not chmod, to avoid a race. 17 (write_scores): Use fchmod, not chmod, to avoid a race.
18 Otherwise, if the lock is broken by some other process,
19 update-game-score might try to change the permission on someone
20 else's file or on a nonexistent file, and incorrectly report an
21 error when this fails.
13 (lock_file): Fix test for out-of-date lock file; it was reversed. 22 (lock_file): Fix test for out-of-date lock file; it was reversed.
14 Use ordinary subtraction rather than difftime; since we're already 23 That is, it incorrectly broke locks when they were more than an
15 assuming POSIX we don't need to worry about the possibility of 24 hour into the future, instead of when they were more than an hour
16 time_t being a magic cookie. 25 in the past. Use ordinary subtraction rather than difftime; since
26 we're already assuming POSIX we don't need to worry about the
27 possibility of time_t being a magic cookie, and since timestamps
28 are positive we don't need to worry about integer overflow when
29 subtracting them. Put two spaces, not just one, after a sentence
30 end in a comment.
17 31
182014-01-19 Paul Eggert <eggert@cs.ucla.edu> 322014-01-19 Paul Eggert <eggert@cs.ucla.edu>
19 33