Bug#374713: [Buildd-tools-devel] Bug#374713: Aborts if cd fails but seems to use pwd -P

Roger Leigh rleigh at whinlatter.ukfsn.org
Fri Jun 23 15:58:47 UTC 2006


Christian Hammers <ch at lathspell.de> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060623/40687601/attachment.pgp


More information about the Buildd-tools-devel mailing list