HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84dfde8
)
use chmod portably in (system base compile)
author
Jason Earl
<jearl@notengoamigos.org>
Sun, 10 Mar 2013 19:12:05 +0000
(20:12 +0100)
committer
Andy Wingo
<wingo@pobox.com>
Sun, 10 Mar 2013 19:12:09 +0000
(20:12 +0100)
* module/system/base/compile.scm (call-with-output-file/atomic): Call
chmod with the file name instead of the port.
module/system/base/compile.scm
patch
|
blob
|
blame
|
history
diff --git
a/module/system/base/compile.scm
b/module/system/base/compile.scm
index
db05d17
..
c522b74
100644
(file)
--- a/
module/system/base/compile.scm
+++ b/
module/system/base/compile.scm
@@
-57,7
+57,9
@@
(with-throw-handler #t
(lambda ()
(proc tmp)
- (chmod tmp (logand #o0666 (lognot (umask))))
+ ;; Chmodding by name instead of by port allows this chmod to
+ ;; work on systems without fchmod, like MinGW.
+ (chmod template (logand #o0666 (lognot (umask))))
(close-port tmp)
(rename-file template filename))
(lambda args