lib-src/update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
instead of fchmod.
+2014-01-22 Eli Zaretskii <eliz@gnu.org>
+
+ * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
+ instead of fchmod.
+
2014-01-22 Paul Eggert <eggert@cs.ucla.edu>
Fix miscellaneous update-game-score bugs.
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;
return -1;
if (rename (tempfile, filename) != 0)
return -1;
+#ifdef WINDOWSNT
+ if (chmod (filename, 0644) < 0)
+ return -1;
+#endif
return 0;
}