]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/lily.scm
Imported Debian patch 2.12.3-5
[lilypond.git] / scm / lily.scm
index bfbc77e62ae1695a66d7561a601270b6f58e39d2..93956a82e412cc9abb35ad6e58a3cd49052c7ff3 100644 (file)
@@ -673,9 +673,9 @@ PIDs or the number of the process."
          (if separate-logs
              (open-file (if (string-or-symbol? (ly:get-option 'log-file))
                             (format "~a.log" (ly:get-option 'log-file))
-                            (if (file-writeable? "/dev/tty")
-                                ("/dev/tty")
-                                ("/dev/null"))) "a") #f))
+                            (if (access? "/dev/tty" W_OK)
+                                "/dev/tty"
+                                "/dev/null")) "a") #f))
         (do-measurements (ly:get-option 'dump-profile))
         (handler (lambda (key failed-file)
                    (set! failed (append (list failed-file) failed)))))