=== modified file 'lib-src/ChangeLog' --- lib-src/ChangeLog 2014-01-22 19:02:41 +0000 +++ lib-src/ChangeLog 2014-01-22 19:38:31 +0000 @@ -1,3 +1,8 @@ +2014-01-22 Eli Zaretskii + + * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod + instead of fchmod. + 2014-01-22 Paul Eggert Fix miscellaneous update-game-score bugs. === modified file 'lib-src/update-game-score.c' --- lib-src/update-game-score.c 2014-01-22 19:02:41 +0000 +++ lib-src/update-game-score.c 2014-01-22 19:38:31 +0000 @@ -443,8 +443,10 @@ fd = mkostemp (tempfile, 0); if (fd < 0) return -1; +#ifndef WINDOWSNT if (fchmod (fd, 0644) != 0) return -1; +#endif f = fdopen (fd, "w"); if (! f) return -1; @@ -457,6 +459,10 @@ return -1; if (rename (tempfile, filename) != 0) return -1; +#ifdef WINDOWSNT + if (chmod (filename, 0644) < 0) + return -1; +#endif return 0; }