diff options
-rw-r--r-- | module/system/base/compile.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/system/base/compile.scm b/module/system/base/compile.scm index db05d1790..c522b74b5 100644 --- 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 |