[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: list-runtime-roots: Ignore ESRCH while reading from /proc.
From: |
Ludovic Courtès |
Subject: |
01/01: list-runtime-roots: Ignore ESRCH while reading from /proc. |
Date: |
Sun, 26 Nov 2017 09:58:45 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 9b0713012905f3997d6fad201dba7c3d93b38b13
Author: Ludovic Courtès <address@hidden>
Date: Sun Nov 26 15:08:50 2017 +0100
list-runtime-roots: Ignore ESRCH while reading from /proc.
Fixes <https://bugs.gnu.org/29368>.
Reported by Martin Castillo <address@hidden>.
* nix/scripts/list-runtime-roots.in (referenced-files): Ignore ESRCH.
---
nix/scripts/list-runtime-roots.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/nix/scripts/list-runtime-roots.in
b/nix/scripts/list-runtime-roots.in
index 511789a..48a07ed 100644
--- a/nix/scripts/list-runtime-roots.in
+++ b/nix/scripts/list-runtime-roots.in
@@ -121,6 +121,7 @@ or the empty list."
(lambda args
(let ((err (system-error-errno args)))
(if (or (= ENOENT err) ;TOCTTOU race
+ (= ESRCH err) ;ditto
(= EACCES err)) ;not running as root
'()
(apply throw args)))))))