summaryrefslogtreecommitdiff
path: root/guix/store
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-12-08 16:30:52 +0100
committerLudovic Courtès <ludo@gnu.org>2022-12-09 09:59:53 +0100
commit0406df0b9b1bf39caa39eba50f918c897ea204e6 (patch)
tree511da610d81a22dd127ed11723a7ef427079fbf3 /guix/store
parent416a691cff8b75d0fcba50412c6e347212ab5973 (diff)
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 'guix/store')
0 files changed, 0 insertions, 0 deletions