Subject: fake chroot makes implicit chdir, does not match behavior of real 
chroot
Package: fakechroot
Version: 2.6-1.3
Severity: normal

while debugging build problems inside fakechroot I noticed that the
behavior doesn't quite line up. In particular chroot while inside
fakechroot does an implied chdir into the new root. This is not the
behavior that occurs when using system chroot.

~$ cd chroot-test/
~/chroot-test$ mkdir chroot
~/chroot-test$ touch outside-chroot
~/chroot-test$ touch chroot/inside-chroot
~/chroot-test$ fakeroot fakechroot perl -le 'chroot "chroot"; print foreach 
glob "*"'
inside-chroot
~/chroot-test$ sudo perl -le 'chroot "chroot"; print foreach glob "*"'
chroot
outside-chroot

I'm not sure if this is actually a known issue or a design decision, but
it seems to be from my point of view.

Thanks in advance, I'm attempting a patch for this now.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: i386 (i686)

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

Versions of packages fakechroot depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries

fakechroot recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to