]> git.eshelyaron.com Git - emacs.git/commit
Byte compilation: handle case where the output file is a mountpoint.
authorPhilipp Stephani <phst@google.com>
Sun, 13 Dec 2020 16:13:50 +0000 (17:13 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 13 Dec 2020 16:17:21 +0000 (17:17 +0100)
commitfe50a8b9ba79b4ac14a3a352d8bf84eaee4f2122
tree0b0b990f0f49f2ad652c2506caa7e5b15add75a3
parent897b8561cdc856fb40b2a3c6f29230849aaf4a34
Byte compilation: handle case where the output file is a mountpoint.

See Bug#44631.  While testing for a readonly output directory has
slightly different semantics, in practice they should cover cases
where Emacs is sandboxed and can only write to the destination file,
not its directory.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Handle the case
where the output directory is not writable.

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--not-writable-directory)
(bytecomp-tests--dest-mountpoint): New unit tests.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el