Revert "syscalls: 'terminal-dimension' ignores EPERM."

This reverts commit 17a102332a.
See <https://github.com/koverstreet/bcachefs/pull/277>.
This commit is contained in:
Tobias Geerinckx-Rice 2021-07-06 09:02:50 +02:00
parent f17a52540f
commit 0dd136bc36
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2236,8 +2236,8 @@ (define (terminal-dimension window-dimension port fall-back)
;; would return EINVAL instead in some cases:
;; <https://bugs.ruby-lang.org/issues/10494>.
;; Furthermore, some FUSE file systems like unionfs return ENOSYS for
;; that ioctl, and bcachefs returns EPERM.
(if (memv errno (list ENOTTY EINVAL ENOSYS EPERM))
;; that ioctl.
(if (memv errno (list ENOTTY EINVAL ENOSYS))
(fall-back)
(apply throw args))))))