Your message dated Mon, 24 Oct 2016 01:03:11 +0000 with message-id <E1byTfT-0006eR-QI@franck.debian.org> and subject line Bug#835513: fixed in hurd 1:0.8.git20161023-1 has caused the Debian Bug report #835513, regarding rpctrace passes incomplete filename to _hurd_exec_file_name if it finds COMMAND in PATH 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 owner@bugs.debian.org immediately.) -- 835513: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835513 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: rpctrace passes incomplete filename to _hurd_exec_file_name if it finds COMMAND in PATH
- From: Kalle Olavi Niemitalo <kon@iki.fi>
- Date: Fri, 26 Aug 2016 15:30:22 +0300
- Message-id: <8737lr1zmp.fsf@Niukka.kon.iki.fi>
Package: hurd Version: 1:0.8.git20160809-1 Severity: normal File: /bin/rpctrace If the COMMAND argument of rpctrace does not contain slash, then rpctrace searches for it in PATH. If the file found is a script file, then the interpreter of the script needs to know the file name so that it can open the file. However, when rpctrace calls _hurd_exec_file_name, it specifies COMMAND unchanged as the file name. The interpreter then typically does not find the file. For example, /bin/which in debianutils 4.8 has "#! /bin/sh". If you run: cd / PATH=/bin rpctrace which then it shows that dash outputs "/bin/sh: 0: Can't open which" after calling dir_lookup("which" 1 0) in some directory. rpctrace should specify the correct file name "/bin/which" instead; then dash would be able to open the file. Another, more complex test case: mkdir testy echo '#! /bin/bash' > testy/prog echo 'printf "%s\n" "$0"' >> testy/prog chmod +x testy/prog PATH=$(pwd)/testy /bin/rpctrace -E PATH=/usr/bin:/bin -o /dev/null prog Actual output: /bin/bash: prog: No such file or directory Expected output similar to: /home/kalle/testy/prog Fixing this is simple: get prefixed_name from the existing file_name_path_lookup call, and if it isn't NULL, then use it instead of *argv and free it afterwards. AFAIK, the _hurd_exec_file_name patches are not yet in the upstream Hurd, so I'm filing this in Debian only. -- System Information: Debian Release: stretch/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: hurd-i386 (i686-AT386) Kernel: GNU-Mach 1.7+git20160809-486-dbg/Hurd-0.8 Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages hurd depends on: ii hurd-libs0.3 1:0.8.git20160809-1 ii libblkid1 2.28.1-1 ii libbz2-1.0 1.0.6-8 ii libc0.3 2.23-4 ii libdaemon0 0.14-6 ii libncursesw5 6.0+20160625-1+b1 ii libtinfo5 6.0+20160625-1+b1 ii libx11-6 2:1.6.3-1+b1 ii netdde 0.0.20150828-3 ii sysv-rc 2.88dsf-59 ii xkb-data 2.17-1 ii zlib1g 1:1.2.8.dfsg-2 Versions of packages hurd recommends: pn bf-utf-source <none> Versions of packages hurd suggests: pn hurd-doc <none> -- Configuration Files: /etc/default/hurd-console changed: ENABLE='false' DISPLAY='-d vga' KBD='-d pc_kbd' if [ -f /etc/default/keyboard ] then . /etc/default/keyboard fi [ -z "$XKBLAYOUT" ] || KBD="$KBD --keymap $XKBLAYOUT" KBD_REPEAT='--repeat=kbd' MOUSE='-d pc_mouse --protocol=ps/2' MOUSE_REPEAT='--repeat=mouse' -- no debconf informationAttachment: pgpVZVmuVxWqx.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
- To: 835513-close@bugs.debian.org
- Subject: Bug#835513: fixed in hurd 1:0.8.git20161023-1
- From: Samuel Thibault <sthibault@debian.org>
- Date: Mon, 24 Oct 2016 01:03:11 +0000
- Message-id: <E1byTfT-0006eR-QI@franck.debian.org>
Source: hurd Source-Version: 1:0.8.git20161023-1 We believe that the bug you reported is fixed in the latest version of hurd, which is due to be installed in the Debian FTP archive. 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 835513@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Samuel Thibault <sthibault@debian.org> (supplier of updated hurd 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 ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sun, 23 Oct 2016 22:23:11 +0000 Source: hurd Binary: hurd-libs0.3 hurd hurd-prof hurd-dev hurd-doc hurd-libs0.3-udeb hurd-udeb Architecture: source hurd-i386 all Version: 1:0.8.git20161023-1 Distribution: unstable Urgency: medium Maintainer: GNU Hurd Maintainers <debian-hurd@lists.debian.org> Changed-By: Samuel Thibault <sthibault@debian.org> Description: hurd - GNU Hurd hurd-dev - GNU Hurd (development files) hurd-doc - GNU Hurd manual hurd-libs0.3 - GNU Hurd (libraries) hurd-libs0.3-udeb - GNU Hurd (libraries) - udeb (udeb) hurd-prof - GNU Hurd hurd-udeb - GNU Hurd - udeb (udeb) Closes: 835513 835948 836529 Changes: hurd (1:0.8.git20161023-1) unstable; urgency=medium . [ Samuel Thibault ] * New upstream snapshot. * Drop gcc-5 Build-Depends, we already build with gcc-6 anyway. Closes: Bug#835948. * hurd.install.in: Install runsystem.hurd in /etc/hurd * patches/{libexec.patch,startup-usr-support.patch}: Update for runsystem.hurd. Closes: Bug#836529. * control: Don't build hurd-prof in noprof build profile. * control: Add missing lsb-base dependency. . [ Kalle Olavi Niemitalo ] * patches/exec_filename_rpctrace.patch: rpctrace: Pass prefixed_name to _hurd_exec_file_name. Closes: Bug#835513. Checksums-Sha1: 4868a850648e8cb201134fef722353a9705324d4 5119 hurd_0.8.git20161023-1.dsc 6caa9cca36d02a10f7b3fdde73150d421c3c8ea9 18064 hurd_0.8.git20161023.orig-eth-filter.tar.bz2 e4d2f50b4e6a52e1363c5ccfd0cecf3431de7389 15927 hurd_0.8.git20161023.orig-eth-multiplexer.tar.bz2 4e96fa228a66c8544cbb0a783219bf22c6444273 10449 hurd_0.8.git20161023.orig-libbpf.tar.bz2 5adb3ff5190d6df0fe8847a62f08277b1d6b4ed7 3345963 hurd_0.8.git20161023.orig-libdde-linux26.tar.bz2 d8569020091996f24d6d62253c085ab8496e5424 19435 hurd_0.8.git20161023.orig-libddekit.tar.bz2 04d57345fbe2557909398153883706d2791c1752 22198 hurd_0.8.git20161023.orig-libmachdev.tar.bz2 46ded084468385044ae82043d14ca4000bbbf439 2034776 hurd_0.8.git20161023.orig.tar.bz2 1a8e8add067d8e380ffb281dcfb121f1ceceb9fc 73790 hurd_0.8.git20161023-1.debian.tar.bz2 7beaaaeb6cfe064aa7c90729f2cd0dc81c406077 7042388 hurd-dbgsym_0.8.git20161023-1_hurd-i386.deb cb1cabb0fc94979a736b5d7fbbd09ff4834062df 13532 hurd-dev-dbgsym_0.8.git20161023-1_hurd-i386.deb e8bb523b446955ad167d1c454dd987887b736782 3145248 hurd-dev_0.8.git20161023-1_hurd-i386.deb b9542d76ff812c8036284a4e9506fb83f32e6801 170516 hurd-doc_0.8.git20161023-1_all.deb c375683787d7054e67e533a5dabdc1263667f7a4 1797208 hurd-libs0.3-dbgsym_0.8.git20161023-1_hurd-i386.deb 9d6e52de02506180844ac370aa17a2d8c0f607d1 277896 hurd-libs0.3-udeb_0.8.git20161023-1_hurd-i386.udeb 19316507d09c68bfb97c0d077e20b74830a2018a 303052 hurd-libs0.3_0.8.git20161023-1_hurd-i386.deb c0b2e6edc26d44d62f237d374a9bdab614888f43 4034522 hurd-prof_0.8.git20161023-1_hurd-i386.deb 987ee11e40d6febf17be706eb81c2351e46761ca 1589722 hurd-udeb_0.8.git20161023-1_hurd-i386.udeb 9b48efd53e240dd0fd48e1c17371a90f9c3dc83f 1518342 hurd_0.8.git20161023-1_hurd-i386.deb Checksums-Sha256: d8135f36878800aca2d0dfa8e19d9b0980e9502e9da0a100b26b6f22e7b6e3a1 5119 hurd_0.8.git20161023-1.dsc 3f803561e074772087d10dd04ff47ac9aa82f63ec57fe3b56b4657f5186e3e7f 18064 hurd_0.8.git20161023.orig-eth-filter.tar.bz2 799fbf0fdd48833a6ae7277db82d41646ab10e35993dce5a3bf08be14f08440d 15927 hurd_0.8.git20161023.orig-eth-multiplexer.tar.bz2 c04b690d13a38f24ec77d7e54b107a6d2f6e433844a4393ab241c907179ebf71 10449 hurd_0.8.git20161023.orig-libbpf.tar.bz2 c00362881b20d900f1714f84b6a84e51be321ecadd46fc9458d1d6b572c133dd 3345963 hurd_0.8.git20161023.orig-libdde-linux26.tar.bz2 3518ac42a52990354291e33db687663af0846e1fc5ce3c3a71a7ee3f7cc710b6 19435 hurd_0.8.git20161023.orig-libddekit.tar.bz2 3e68392c1cef6e1f852c051ba8f8902c571fa1802b806581f84586c6da0e3cbf 22198 hurd_0.8.git20161023.orig-libmachdev.tar.bz2 cb7a85df8ded703f1baede4c07a034b6fcb93e91610380b1284b4c0f9bbe20ba 2034776 hurd_0.8.git20161023.orig.tar.bz2 05ca255006f9d205bf87fde2e80d4085ad3dd5eb9c97c6b19a16c1c3ca17d89d 73790 hurd_0.8.git20161023-1.debian.tar.bz2 9d8f57df4f464c23ae8e82551fc7d3f4ebc688e7169e9cf5f49b142f97997cb0 7042388 hurd-dbgsym_0.8.git20161023-1_hurd-i386.deb 3c56167dd5a33a38936f01b787b6d2b73708cbfabb39de244fe6e015ff8ab96a 13532 hurd-dev-dbgsym_0.8.git20161023-1_hurd-i386.deb 415d94a3e21d135b44b16569a80ab48d4490e693f37c3c1fc1574a6eb62eff47 3145248 hurd-dev_0.8.git20161023-1_hurd-i386.deb 70c3b6e3850c8e5065038cbd3255a60fbe82d65c08a0c356939115bd8d966eeb 170516 hurd-doc_0.8.git20161023-1_all.deb a3071b3d3f74a9e2ad30a393a01048038c7253eb994073a63ad7b347225bc3a4 1797208 hurd-libs0.3-dbgsym_0.8.git20161023-1_hurd-i386.deb 2a5630872ef0082acc375bb4706297607a7f2d4c13a6af97b6d094e507fb4660 277896 hurd-libs0.3-udeb_0.8.git20161023-1_hurd-i386.udeb 1c02325d3a94e8d56138b993a807c0fda5ab509aacc186ef489dbba7d3529fab 303052 hurd-libs0.3_0.8.git20161023-1_hurd-i386.deb 2f1e721e01d2ba555dcb1054003d3a05f218cce8e0532b85343b7de015d7d51f 4034522 hurd-prof_0.8.git20161023-1_hurd-i386.deb dfe0c300092ec31a5723cc8e2f8a51cf49a0f3320404c8a4cb5ae88ad67ed4a2 1589722 hurd-udeb_0.8.git20161023-1_hurd-i386.udeb c854e026c9e75986e62fff0bae783afe23d4e4f747befc0ec49d3c3500d81ea1 1518342 hurd_0.8.git20161023-1_hurd-i386.deb Files: 0ba7490ef7fdee9147cf088c82d56a6b 5119 admin required hurd_0.8.git20161023-1.dsc f79689b389464920e601cc6f1a2a0ebe 18064 admin required hurd_0.8.git20161023.orig-eth-filter.tar.bz2 d31e4ae046d3a2e0b9a70b52332620e0 15927 admin required hurd_0.8.git20161023.orig-eth-multiplexer.tar.bz2 dadf72acb3b34afb6c8e08ec53eca47b 10449 admin required hurd_0.8.git20161023.orig-libbpf.tar.bz2 1cc646c632a830f29c27c7831a5e8e7d 3345963 admin required hurd_0.8.git20161023.orig-libdde-linux26.tar.bz2 3522b12321e74396e9e08d4b969a55a4 19435 admin required hurd_0.8.git20161023.orig-libddekit.tar.bz2 4f4903b654ded1cbfa446391ec777bdd 22198 admin required hurd_0.8.git20161023.orig-libmachdev.tar.bz2 bf4b59a6d5f38a76c65da7510c135918 2034776 admin required hurd_0.8.git20161023.orig.tar.bz2 a6926114e472ef53b9279e31d8e77ff6 73790 admin required hurd_0.8.git20161023-1.debian.tar.bz2 88d22d5cd0a19f2d75510bf2bad7ab22 7042388 debug extra hurd-dbgsym_0.8.git20161023-1_hurd-i386.deb 2b6ec95f88d746a8ec24f8aca3a1278f 13532 debug extra hurd-dev-dbgsym_0.8.git20161023-1_hurd-i386.deb d39d9460bbc0cce22583cab6de6c9dfb 3145248 libdevel standard hurd-dev_0.8.git20161023-1_hurd-i386.deb a3e25732291ba6c844624d4361db1710 170516 doc optional hurd-doc_0.8.git20161023-1_all.deb e49a6b530c0b70a5436b53f94ef2c5bc 1797208 debug extra hurd-libs0.3-dbgsym_0.8.git20161023-1_hurd-i386.deb 256078496639badd374b2568ce1b881b 277896 debian-installer optional hurd-libs0.3-udeb_0.8.git20161023-1_hurd-i386.udeb 6a4999dc1f9f7690c4d20708e2b9bc4e 303052 libs required hurd-libs0.3_0.8.git20161023-1_hurd-i386.deb 593ec45a9cf907b3844a3c2b4ecc393b 4034522 admin required hurd-prof_0.8.git20161023-1_hurd-i386.deb d863dad508c472248a246c80697cc7cd 1589722 debian-installer optional hurd-udeb_0.8.git20161023-1_hurd-i386.udeb 6d0dc7802e641514fd19ade3c92c1f77 1518342 admin required hurd_0.8.git20161023-1_hurd-i386.deb -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYDVImAAoJEOPlHOj7ay8dGrkP/3e26gfmbwocuBQvbFk2GwNY KSExK6pUOesdjs4wPe63Eyldr5QKzQ/FdLg3+1KpXuCASyzS37z8m3F/LcyJZXnm Qw68+KZMiAh+FOArItGgLERjpX5AupxsdAvvh40uB3kFhF40uCqQ9/xcv1lHis2g c78sDz452iAGRoVqm7bwGsMuHFYBQ0nURQiMHYDp2/UpzKLGPcE82JAvj+WfFmDh ER+LuWuNalsF8VF8MCqccz7yZo/sOQ58mvyy/iSyw/VcXF1NpJAozSmIXMkURFTz cJv80F2rvqOcfiqVWDqg4HlfwD10TxYIiimFOREyS2EF3twPvdPOyqOKAhwP0tKU zNlzMi2Nt66blEvY0pk0YH2CVTjU7y4hPdGAhVAuIbrcHJ10sluo1xupLDEE+RZ2 pyiqKhb2PlgowDWtbQxl8b+/3Ic/R7lfDGOvFKdC6ZKW53SYY67nyKC7BA5Kco1X 8oFeklPUHZd78Gt8fHtDKa1nBnes8S1RxDqxu8NjtqrMyyovaZo01TnMUFNbJ0+A 1IvoQvOtfjRn/5F5Gzk38iYMkYkZHzhEU/PdyWOrpAMcWzcKQENCHpl9HUkUelM3 ixrwv5wwUmb7h7DepT2yb1LyZnuyZsvS82+tJHoywlRAATcuwWkO/1wYYjC1lRLf qKs8hs1j2zwNfRrPdfiU =Po65 -----END PGP SIGNATURE-----
--- End Message ---