[Bug 398974] Re: path to builder joined using + in pbuilder-dist

Iain Lane launchpad at orangesquash.org.uk
Sat Jul 24 10:29:26 UTC 2010

I've just come across this, although the code seems to have evolved a
bit since this report was filed. There is no reason for /usr/sbin to be
in the path of the user. It is wrong for pbuilder-dist to search for the
builder using the user's PATH settings as it is going to be launched
under sudo anyway.

Why does this check need to exist? The relevant lines are 80-86:

        for file in os.environ['PATH'].split(':'):
            if os.path.exists(os.path.join(file, builder)):
                builder = ''
        if builder:
            print 'Error: Could not find "%s".' % builder

** Changed in: ubuntu-dev-tools (Ubuntu)
       Status: New => Triaged

** Changed in: ubuntu-dev-tools (Ubuntu)
   Importance: Undecided => Medium

path to builder joined using + in pbuilder-dist
You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in ubuntu.

More information about the universe-bugs mailing list