[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: syscalls: 'terminal-dimension' ignores EPERM.
From: |
guix-commits |
Subject: |
03/04: syscalls: 'terminal-dimension' ignores EPERM. |
Date: |
Fri, 29 May 2020 12:32:41 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 17a102332a253f0e3b1f511fa7bda2094264a77c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri May 29 16:44:27 2020 +0200
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.
---
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 6be322d..d69b178 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -2052,8 +2052,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.
- (if (memv errno (list ENOTTY EINVAL ENOSYS))
+ ;; that ioctl, and bcachefs returns EPERM.
+ (if (memv errno (list ENOTTY EINVAL ENOSYS EPERM))
(fall-back)
(apply throw args))))))