diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-12-08 16:30:52 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-12-09 08:46:21 +0100 |
commit | e625e9b194f2de3ff20872f04b5c802c70cb411c (patch) | |
tree | 68a0ab32517663aed8c9e99a16b18a9d82d8b349 /gnu/packages/web.scm | |
parent | 3405b2b16cbadbbbc0dcd61e6fb87a65561fc7f0 (diff) | |
download | guix-e625e9b194f2de3ff20872f04b5c802c70cb411c.tar guix-e625e9b194f2de3ff20872f04b5c802c70cb411c.tar.gz |
environment: '-C' doesn't throw when the NSS is dysfunctional.
Previously, if the name service switch was dysfunctional, as can happen
on foreign distros lacking nscd, "guix shell -C" would crash with a
backtrace on the uncaught 'getpwuid' exception. To address that, catch
the exception and deal with it gracefully.
Reported by remsd1 on #guix.
* guix/scripts/environment.scm (launch-environment/container): Wrap
'getpwuid' call in 'false-if-exception'.
Diffstat (limited to 'gnu/packages/web.scm')
0 files changed, 0 insertions, 0 deletions