syscalls: 'terminal-dimension' ignores EPERM.
Fixes <https://bugs.gnu.org/41581>. Reported by Tobias Geerinckx-Rice <me@tobias.gr>. * guix/build/syscalls.scm (terminal-dimension): Add EPERM to the list of errno code for FALL-BACK.
This commit is contained in:
parent
b56cbe8974
commit
17a102332a
1 changed files with 2 additions and 2 deletions
|
@ -2052,8 +2052,8 @@ correspond to a terminal, return the value returned by FALL-BACK."
|
||||||
;; would return EINVAL instead in some cases:
|
;; would return EINVAL instead in some cases:
|
||||||
;; <https://bugs.ruby-lang.org/issues/10494>.
|
;; <https://bugs.ruby-lang.org/issues/10494>.
|
||||||
;; Furthermore, some FUSE file systems like unionfs return ENOSYS for
|
;; Furthermore, some FUSE file systems like unionfs return ENOSYS for
|
||||||
;; that ioctl.
|
;; that ioctl, and bcachefs returns EPERM.
|
||||||
(if (memv errno (list ENOTTY EINVAL ENOSYS))
|
(if (memv errno (list ENOTTY EINVAL ENOSYS EPERM))
|
||||||
(fall-back)
|
(fall-back)
|
||||||
(apply throw args))))))
|
(apply throw args))))))
|
||||||
|
|
||||||
|
|
Reference in a new issue