aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/scripts/list-runtime-roots.in1
1 files changed, 1 insertions, 0 deletions
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)))))))