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:

Attachment: 001_su-p-preserve-path
Description: Binary data


regards,
        junichi
-- 
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project

Reply via email to