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
|
@ -121,6 +121,7 @@ or the empty list."
|
||||||
(lambda args
|
(lambda args
|
||||||
(let ((err (system-error-errno args)))
|
(let ((err (system-error-errno args)))
|
||||||
(if (or (= ENOENT err) ;TOCTTOU race
|
(if (or (= ENOENT err) ;TOCTTOU race
|
||||||
|
(= ESRCH err) ;ditto
|
||||||
(= EACCES err)) ;not running as root
|
(= EACCES err)) ;not running as root
|
||||||
'()
|
'()
|
||||||
(apply throw args)))))))
|
(apply throw args)))))))
|
||||||
|
|
Loading…
Reference in New Issue