Browse Source

list-runtime-roots: Ignore ESRCH while reading from /proc.

Fixes <https://bugs.gnu.org/29368>.
Reported by Martin Castillo <castilma@uni-bremen.de>.

* nix/scripts/list-runtime-roots.in (referenced-files): Ignore ESRCH.
version-0.14.0
Ludovic Courtès 5 years ago
parent
commit
9b07130129
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 1
      nix/scripts/list-runtime-roots.in

1
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)))))))

Loading…
Cancel
Save