Your message dated Tue, 15 Jul 2008 15:47:09 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#412774: fixed in fakechroot 2.7-1 has caused the Debian Bug report #412774, regarding fakechroot: execve handles #! incorrectly to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [EMAIL PROTECTED] immediately.) -- 412774: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412774 Debian Bug Tracking System Contact [EMAIL PROTECTED] with problems
--- Begin Message ---Package: fakechroot Version: 2.5-1.1.20070227-1 Severity: normal (again, that's a local build version, but it is based on 2.5-1.1 with patches from other current bugs.) The execve wrapper, correctly, expands the actual-filename argument because the kernel needs an unfake name. It then looks for a #! line, and if it finds one, expands the interpreter name. However, it then re-expands actual-filename when it adds it to the constructed command line... which is wrong on two counts: 1. It's already been expanded once already by that point 2. It shouldn't *get* expanded, since the interpreter will be calling wrapped-open on it anyway... Test case: $ fakeroot fakechroot debootstrap --variant=fakechroot sarge /tmp/testroot $ fakeroot fakechroot chroot /tmp/testroot # cat >> /tmp/foo.sh #!/bin/sh echo $0 dirname "$0" dir=`dirname "$0"` echo `cd "$dir"; pwd` # chmod +x /tmp/foo.sh # /tmp/foo.sh /tmp/testroot/tmp/foo.sh /tmp/testroot/tmp /tmp/testroot/tmp # exit (It's only the "echo $0" that matters, the test is just cooked down from what tomcat's jasper.sh actually does.) The fixed version, which is basically + const char *fake_filename = filename; - expand_chroot_path(filename, fakechroot_path, fakechroot_ptr, fakechroot_buf); - newargv[n++] = filename; + newargv[n++] = fake_filename; Causes the output to be /tmp/foo.sh /tmp /tmp which is (by inspection) correct. -- 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
--- End Message ---
--- Begin Message ---Source: fakechroot Source-Version: 2.7-1 We believe that the bug you reported is fixed in the latest version of fakechroot, which is due to be installed in the Debian FTP archive: fakechroot_2.7-1.diff.gz to pool/main/f/fakechroot/fakechroot_2.7-1.diff.gz fakechroot_2.7-1.dsc to pool/main/f/fakechroot/fakechroot_2.7-1.dsc fakechroot_2.7-1_amd64.deb to pool/main/f/fakechroot/fakechroot_2.7-1_amd64.deb fakechroot_2.7.orig.tar.gz to pool/main/f/fakechroot/fakechroot_2.7.orig.tar.gz A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Piotr Roszatycki <[EMAIL PROTECTED]> (supplier of updated fakechroot package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Tue, 15 Jul 2008 13:31:00 +0200 Source: fakechroot Binary: fakechroot Architecture: source amd64 Version: 2.7-1 Distribution: unstable Urgency: medium Maintainer: Piotr Roszatycki <[EMAIL PROTECTED]> Changed-By: Piotr Roszatycki <[EMAIL PROTECTED]> Description: fakechroot - gives a fake chroot environment Closes: 412774 413918 420870 473682 477447 Changes: fakechroot (2.7-1) unstable; urgency=medium . * Apply all NMU patches. Thank you, people! * Improved stability and support for the latest libc. Closes: #420870. * src/libfakechroot.c: - Fixed readlink(2) function to be ssize_t as it is in newer libc. Thanks Sune Vuorela. - New functions: __fxstatat(2), __fxstatat64(2), fchmodat(2), fchownat(2), __openat(2), __openat64(2), unlinkat(2). It fixes last coreutils. Thanks Martin Pitt and Daniel Kahn Gillmor. Closes: #473682. - New functions: mkdirat(2), renameat(2). - Fixed chroot(2) function to not change current working directory. Closes: #477447. - Fixed chroot(2) function to handle relative path. - Fixed execve(2) function to not expand argv0 and handle "#!" correctly. Thanks Mark Eichin. Closes: #412774. - New eaccess(3) function backported from Klik. - New functions: bind(2), connect(2), getpeername(2), getsockname(2). They support PF_UNIX sockets. Closes: #413918. - More memory allocation for fakechroot_init. * test/fakechroot.sh: - Add cp, mkdir, chmod, rm and libraries. - Call bash instead of sh. - Use /usr/lib/fakechroot library path if own version is not compiled. * debian/packages: - Standards-Version: 3.8.0 - Depends on main libc package. Non-default multilib architecture is excluded from dependencies list. - Multilib architecture is supported on i386. Checksums-Sha1: 37a27fe207fb12deb3b5c5d394c45cfd6608247e 1269 fakechroot_2.7-1.dsc 58e9952adc63e92cc165e1315e81219558219e6b 480932 fakechroot_2.7.orig.tar.gz 509a374087f1d21825141b778affbd8721316150 7690 fakechroot_2.7-1.diff.gz 20029b2d0be10fef5536634a1ca67a980ea2b91e 50510 fakechroot_2.7-1_amd64.deb Checksums-Sha256: 5984800010e4b4d8fae9cab47b4c27d8017f4953abd90474deabb8d35abe67f5 1269 fakechroot_2.7-1.dsc aca2e144bb9188d809e60dcb7682981637403ae6d1e3a0bea7fe55f45e563ad4 480932 fakechroot_2.7.orig.tar.gz c76def9c9890737a618a50ca7f389774c8a0df2d7715df347c4a1aeb98a5750f 7690 fakechroot_2.7-1.diff.gz 7a506fc2779bb93001a98a910e038f01341db03577e9bf10539e46544633bb75 50510 fakechroot_2.7-1_amd64.deb Files: 0ac16f37c5a8354886d3d3fbd1360d21 1269 utils optional fakechroot_2.7-1.dsc 67cbc05f53fe4630c64465b3917c8469 480932 utils optional fakechroot_2.7.orig.tar.gz 72e7e82c1d797ccfcf036f66ad5bc08e 7690 utils optional fakechroot_2.7-1.diff.gz 2ba4847a7b5b2f2a31d9fb324641561a 50510 utils optional fakechroot_2.7-1_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIfMO7hMHHe8CxClsRAkrXAKChGu1q4J9wIlMiw4VpRGy6dL6nIwCePMQG fWfi5XqOSmSKM7V0v55Rn7U= =Pko1 -----END PGP SIGNATURE-----
--- End Message ---

