Package: fakechroot
Version: 2.5-1.1.20070207-1
Severity: normal

"readlink -f ." inside fakechroot displays the external path, instead
of the local one.  Looking at coreutils, readlink -f calls
canonicalize_file_name, which is supported, but it only calls it on
the input side... it looks like it also needs to call
narrow_chroot_path on the return value...

Experimentally, calling narrow_chroot_path on the return from
next_canonicalize_file_name(name) does work.  (You probably want the
modified narrow_chroot_path from debian bug #410145, though...)

Test case should be simple enough: 
  * build a chroot (debootstrap or whatever)
  * fakeroot fakechroot chroot $(CHROOT_DIR) realpath -f .
if it prints $(CHROOT_DIR), you're seeing the bug; if it prints /
you're seeing the fix...


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.15-mc2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fakechroot depends on:
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an

-- debconf-show failed


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

Reply via email to