Bug#880920: Document Rules-Requires-Root field
Josh Triplett writes ("Bug#880920: Document Rules-Requires-Root field"):
> On Fri, 29 Dec 2017 11:29:00 +0000 Niels Thykier <niels@thykier.net> wrote:
> > + # Command "sudo", with arguments "-nE" and "--"
> > + export DPKG_GAIN_ROOT_CMD='sudo -nE --'
> > + # Command "fakeroot" with the single argument "--"
> > + export DPKG_GAIN_ROOT_CMD='fakeroot --'
>
> You use sudo with -E here to preserve the environment. If that's a
> requirement, then the preceding paragraph should explicitly say
> something like "the command must preserve all environment variables,
> unmodified".
I think the environment does need to be preserved, indeed.
Ian.
--
Ian Jackson <ijackson@chiark.greenend.org.uk> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.
Reply to: