commit:     96b7efd4551c3b751082144742172395d18e757d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  9 10:16:09 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Dec  9 10:16:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=96b7efd4

scripts/bootstrap-prefix: quote PORTAGE_{USER,GRP}NAME

This can contain weird stuff, therefore don't trust it to be sane.

Bug: https://bugs.gentoo.org/967030
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 26a4f54d31..f788ee3552 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -320,10 +320,10 @@ bootstrap_setup() {
                        # here, as it makes more sense, while we figure out a 
way to
                        # migrate Prefix to not pushing this in make.globals.
                        echo
-                       echo "PORTAGE_USERNAME=$(id --name --user)"
-                       echo "PORTAGE_GRPNAME=$(id --name --group)"
-                       echo "PORTAGE_INST_UID=$(id --user)"
-                       echo "PORTAGE_INST_GID=$(id --group)"
+                       echo "PORTAGE_USERNAME=\"$(id --name --user)\""
+                       echo "PORTAGE_GRPNAME=\"$(id --name --group)\""
+                       echo "PORTAGE_INST_UID=\"$(id --user)\""
+                       echo "PORTAGE_INST_GID=\"$(id --group)\""
                } > "${MAKE_CONF_DIR}/0100_bootstrap_prefix_make.conf"
        fi
 

Reply via email to