Bug#461874: invalid $HOME in pbuilder -login session

Andreas Beckmann debian at abeckmann.de
Mon Jan 21 10:55:00 UTC 2008


Package: pbuilder
Version: 0.177
Severity: normal

Hi Junichi,

in a pbuilder -login session the variable $HOME keeps the value of the
user invoking pbuilder, which is obviously not valid inside the chroot.
Probably should be set to /root if it's root's shell.

I noticed this by vim failing to save /home/beckmann/.viminfo (and being
noisy-and-request-pressing-enter about this) after editing some configuration.
This should have been /root/.viminfo.

Shell history is not preserved with this settings, too.


Andreas

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (130, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.4.3      Bootstrap a Debian system
ii  coreutils                     5.97-5.3   The GNU core utilities
ii  debianutils                   2.28.2     Miscellaneous utilities specific t
ii  debootstrap                   1.0.7      Bootstrap a basic Debian system
ii  gcc                           4:4.2.2-2  The GNU C compiler
ii  wget                          1.10.2-3   retrieves files from the web

Versions of packages pbuilder recommends:
ii  cowdancer                     0.44       Copy-on-write directory tree utili
ii  devscripts                    2.10.13    Scripts to make the life of a Debi
ii  fakeroot                      1.9        Gives a fake root environment
ii  sudo                          1.6.9p10-1 Provide limited super user privile

-- no debconf information





More information about the Pbuilder-maint mailing list