[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r116116: Fix MS-Windows build in lib-src broken by l
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r116116: Fix MS-Windows build in lib-src broken by last commit. |
Date: |
Wed, 22 Jan 2014 19:38:59 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116116
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Wed 2014-01-22 21:38:31 +0200
message:
Fix MS-Windows build in lib-src broken by last commit.
lib-src/update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
instead of fchmod.
modified:
lib-src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1608
lib-src/update-game-score.c
updategamescore.c-20091113204419-o5vbwnq5f7feedwu-2389
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2014-01-22 19:02:41 +0000
+++ b/lib-src/ChangeLog 2014-01-22 19:38:31 +0000
@@ -1,3 +1,8 @@
+2014-01-22 Eli Zaretskii <address@hidden>
+
+ * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
+ instead of fchmod.
+
2014-01-22 Paul Eggert <address@hidden>
Fix miscellaneous update-game-score bugs.
=== modified file 'lib-src/update-game-score.c'
--- a/lib-src/update-game-score.c 2014-01-22 19:02:41 +0000
+++ b/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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r116116: Fix MS-Windows build in lib-src broken by last commit.,
Eli Zaretskii <=