mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
5c22f3726e
commit
9b07130129
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue