Subject: Re: pkg/34059: tool wrappers are wrong for chown in unprivileged mode
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Johnny C. Lam <jlam@pkgsrc.org>
List: pkgsrc-bugs
Date: 07/23/2006 16:00:12
The following reply was made to PR pkg/34059; it has been noted by GNATS.
From: "Johnny C. Lam" <jlam@pkgsrc.org>
To: gnats-bugs@NetBSD.org
Cc: pkgsrc-bugs@netbsd.org
Subject: Re: pkg/34059: tool wrappers are wrong for chown in unprivileged mode
Date: Sun, 23 Jul 2006 15:55:27 +0000
On Sun, Jul 23, 2006 at 02:05:00PM +0000, rillig@NetBSD.org wrote:
> >Number: 34059
> >Category: pkg
> >Synopsis: tool wrappers are wrong for chown in unprivileged mode
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Sun Jul 23 14:05:00 +0000 2006
> >Originator: Roland Illig
> >Release: NetBSD 3.0_STABLE
> >Organization:
>
> >Environment:
>
>
> System: NetBSD bacc.roland-illig.de 3.0_STABLE NetBSD 3.0_STABLE (GENERIC) #0: Sat Jun 17 13:16:17 CEST 2006 build@baccf5ee.roland-illig.de:/home/build/3/2006-06/i386/work/sys/arch/i386/compile/GENERIC i386
> Architecture: i386
> Machine: i386
> >Description:
>
> When building packages in unprivileged mode, when packages run "chown",
> the tool wrappers run the real chown instead of ignoring the request.
> This may lead to build failures that haven't been there before.
>
> >How-To-Repeat:
>
> >Fix:
>
> The "chown" and "chgrp" commands should be wrappers around ${TRUE}.
Yes, I think this is the right way to do it. I also think in the
unprivileged mode, "install" should also be a tool that is a special
wrapper that ignores -o and -g.
Cheers,
-- Johnny Lam <jlam@pkgsrc.org>