mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 20:27:36 -05:00
Revert "syscalls: 'terminal-dimension' ignores EPERM."
This reverts commit 17a102332a
.
See <https://github.com/koverstreet/bcachefs/pull/277>.
This commit is contained in:
parent
f17a52540f
commit
0dd136bc36
1 changed files with 2 additions and 2 deletions
|
@ -2236,8 +2236,8 @@ (define (terminal-dimension window-dimension port 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, and bcachefs returns EPERM.
|
;; that ioctl.
|
||||||
(if (memv errno (list ENOTTY EINVAL ENOSYS EPERM))
|
(if (memv errno (list ENOTTY EINVAL ENOSYS))
|
||||||
(fall-back)
|
(fall-back)
|
||||||
(apply throw args))))))
|
(apply throw args))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue