From: James Le Cuirot <chewi@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH 1/2] acct-group.eclass: Don't modify groups when EPREFIX is non-empty
Date: Fri, 09 Dec 2022 11:13:12 +0000 [thread overview]
Message-ID: <12711c85be3ccdee3d8b243b32a4238d13591508.camel@gentoo.org> (raw)
In-Reply-To: <fe50435fb6c8c39eff8665a0b783047e28f52a6d.camel@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
On Fri, 2022-12-09 at 05:23 +0100, Michał Górny wrote:
> On Thu, 2022-12-08 at 21:28 +0000, James Le Cuirot wrote:
> > 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>
> > ---
> > eclass/acct-group.eclass | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > 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
>
> I dare say the message is not necessarily correct here but I suppose it
> doesn't matter that much.
Yeah, I thought that too, but not enough for such a corner case.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 858 bytes --]
next prev parent reply other threads:[~2022-12-09 11:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 21:28 [gentoo-dev] acct-*.eclass: Don't modify users/groups when EPREFIX is non-empty James Le Cuirot
2022-12-08 21:28 ` [gentoo-dev] [PATCH 1/2] acct-group.eclass: Don't modify groups " James Le Cuirot
2022-12-09 4:23 ` Michał Górny
2022-12-09 11:13 ` James Le Cuirot [this message]
2022-12-08 21:28 ` [gentoo-dev] [PATCH 2/2] acct-user.eclass: Don't modify users " James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12711c85be3ccdee3d8b243b32a4238d13591508.camel@gentoo.org \
--to=chewi@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox