mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
scripts/environment: Do not attempt to map GID 0.
* guix/scripts/environment.scm (launch-environment/container): Do not attempt to map GID 0. Fixes: #4234 Change-Id: If196430de5f09932e5dd736a55b75bbcda8cd7be
This commit is contained in:
parent
99b0b7aa1f
commit
c5b76579e8
1 changed files with 5 additions and 1 deletions
|
|
@ -828,7 +828,11 @@ WHILE-LIST."
|
|||
(let* ((cwd (getcwd))
|
||||
(home (getenv "HOME"))
|
||||
(uid (if user 1000 (getuid)))
|
||||
(gid (if user 1000 (getgid)))
|
||||
(gid (if user
|
||||
1000
|
||||
(match (getgid)
|
||||
(0 1000)
|
||||
(gid gid))))
|
||||
|
||||
;; On a foreign distro, the name service switch might be
|
||||
;; dysfunctional and 'getpwuid' throws. Don't let that hamper
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue