Bug#347935: [Pbuilder-maint] Bug#347935: /usr/bin/pdebuild: Again,
the PATH environment variable is lost within pdebuild/pbuilder
Junichi Uekawa
dancer at netfort.gr.jp
Sat Jan 14 08:13:53 UTC 2006
reassign 347935 shadow
thanks
Hi,
> Package: pbuilder
> Version: 0.144
> Severity: normal
> File: /usr/bin/pdebuild
>
> I noticed recently that my pbuilders stopped using ccache for some
> reason.
>
> It seems, after investigation, that su -p changed its behaviour
> recently, and doesn't preserve the PATH environment variable anymore.
It seems like it's not preserving environment when it's invoked from
root. Normal users are apparently not affected.
# echo 'echo $PATH' | PATH=/usr/bin:/bin/:/test-keyword su -p
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
# echo 'echo $PATH' | PATH=/usr/bin:/bin/:/test-keyword su -p -c bash
/usr/bin:/bin/:/test-keyword
Here's a proposed regression test for you to test the bug (to be
placed under debian/pbuilder-test; which is used by B92test-pkg
pbuilder hook:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001_su-p-preserve-path
Type: application/octet-stream
Size: 183 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20060114/8dea63ab/001_su-p-preserve-path-0001.obj
-------------- next part --------------
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
More information about the Pbuilder-maint
mailing list