diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-12-08 09:16:41 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-12-27 23:48:47 +0000 |
commit | cfad8158b77d70f92698d1d616f778cd8d4656b1 (patch) | |
tree | 58f41cd8c43a0a99d789a9a53758d082ee40cdb9 | |
parent | virtual/perl-XSLoader: Stabilize 0.310.0 sparc, #865895 (diff) | |
download | gentoo-cfad8158b77d70f92698d1d616f778cd8d4656b1.tar.gz gentoo-cfad8158b77d70f92698d1d616f778cd8d4656b1.tar.bz2 gentoo-cfad8158b77d70f92698d1d616f778cd8d4656b1.zip |
acct-group.eclass: Don't modify groups when EPREFIX is non-empty
This was happening when running a prefix as root, which we don't really
support, but also when building a prefixed system under ROOT.
Closes: https://bugs.gentoo.org/779181
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r-- | eclass/acct-group.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass index 590a2f20ed8e..f55c9f4c9587 100644 --- a/eclass/acct-group.eclass +++ b/eclass/acct-group.eclass @@ -157,7 +157,7 @@ acct-group_src_install() { acct-group_pkg_preinst() { debug-print-function ${FUNCNAME} "${@}" - if [[ ${EUID} -ne 0 ]]; then + if [[ ${EUID} -ne 0 || -n ${EPREFIX} ]]; then einfo "Insufficient privileges to execute ${FUNCNAME[0]}" return fi |