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

This reverts commit 17a102332a253f0e3b1f511fa7bda2094264a77c.
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

@ -2236,8 +2236,8 @@ correspond to a terminal, return the value returned by 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))))))