Christian Hammers <[EMAIL PROTECTED]> writes: > On 2006-06-21 Christian Hammers wrote: >> In the old version dchroot-0.13 it jumped to the home directory as >> specified in /etc/passwd *always*, regardless of the actual cwd of the >> calling user. It did this by executing e.g. "/bin/su - ch -c foobar". >> >> My suggestion would be to change the code to do something like: >> p = popen("/bin/sh -c 'pwd'", "r"); >> target_dir = fgets(p); >> ... chroot() ... >> chdir(target_dir); > > Or maybe add an option that behaves like a "su" as I just found out that the > new schroot does not read ~/.bashrc like both interactive and > non-interactive new bash instances are supposed to. E.g. in my > setup .bashrc tested for /etc/debian_chroot and changed $DISPLAY from > ":0.0" (socket) to "localhost:0.0" (inet) and changed the PS1 prompt for > interactive shells so that I did not mix up my xterms...
Please could you give the packages at http://people.debian.org/~rleigh/schroot/ a try? You will need to rebuild the sources (at the same location) if you aren't using powerpc. The changes are all documented in the ChangeLog, and the manual pages have been updated to document the current semantics. If you find any incompatibilities, please could you let me know. This should restore the previous behaviour exactly. Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gutenprint.sourceforge.net/ Debian GNU/Linux http://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
pgpASMzuUPI8N.pgp
Description: PGP signature