From 9b0713012905f3997d6fad201dba7c3d93b38b13 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 26 Nov 2017 15:08:50 +0100 Subject: list-runtime-roots: Ignore ESRCH while reading from /proc. Fixes . Reported by Martin Castillo . * nix/scripts/list-runtime-roots.in (referenced-files): Ignore ESRCH. --- nix/scripts/list-runtime-roots.in | 1 + 1 file changed, 1 insertion(+) (limited to 'nix') diff --git a/nix/scripts/list-runtime-roots.in b/nix/scripts/list-runtime-roots.in index 511789a539..48a07edf5f 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))))))) -- cgit v1.2.3