On Wed, Jul 21, 2010 at 02:56:31PM +0200, Bastian Blank wrote:
> Package: schroot
> Version: 1.4.7-1
> Severity: important
> 
> | $ schroot -r -c sid-amd64-c7f1f52b-b069-464d-8036-e872ecdfaedf sh
> | $ set
> | IFS='
> | '
> | OPTIND='1'
> | PATH='/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games'
> | PPID='16903'
> | PS1='$ '
> | PS2='> '
> | PS4='+ '
> | PWD='/home/waldi'
> | SCHROOT_COMMAND='sh'
> | SCHROOT_GID='1000'
> | SCHROOT_GROUP='waldi'
> | SCHROOT_SESSION_ID='sid-amd64-c7f1f52b-b069-464d-8036-e872ecdfaedf'
> | SCHROOT_UID='1000'
> | SCHROOT_USER='waldi'
> | $
> 
> The important variables TERM and SHELL are missing and breaks normal
> shell usage.

Using --preserve-environment (or setting preserve-environment=true
in the chroot configuration) will preserve these variables.  Maybe
we also need to add a whitelist in addition to the blacklist which
automatically copies certain variables whether or not
--preserve-environment is used?


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

Attachment: signature.asc
Description: Digital signature

Reply via email to