From 0dd136bc36709bd413505387ef44a5b60e6be74c Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 6 Jul 2021 09:02:50 +0200 Subject: [PATCH] Revert "syscalls: 'terminal-dimension' ignores EPERM." This reverts commit 17a102332a253f0e3b1f511fa7bda2094264a77c. See . --- guix/build/syscalls.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index 8886fc0fb9..ac1b0c2eea 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm @@ -2236,8 +2236,8 @@ (define (terminal-dimension window-dimension port fall-back) ;; would return EINVAL instead in some cases: ;; . ;; 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))))))