Package: util-linux Version: 2.25.2-6 Severity: normal File: /usr/bin/whereis Tags: upstream
Dear Maintainer, Upon working with a script where the path to bash can not allway's be assumed I decided to use whereis to locate the bash binary. Upon specifying the -b flag I found that annoyingly wheris reported the main systems bashrc file located at /etc/bash.bashrc . This is odd behaviour at least as the Filesystem Hierarchy Specified by LSB practically disallows placing binaries in /etc . Odder still is that there seems to be no mark or metadata surrounding the bashrc file to mark it as a binary. I believe this is merely an oversight and could be easily fixed as it seems to me the FreeBSD version of whereis should not suffer from this same bug. My fix was to truncate the response after the first response but that seems an easy way to cause problems down the line due to possible implementation changes. -- System Information: Debian Release: 8.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages util-linux depends on: ii initscripts 2.88dsf-59 ii libblkid1 2.25.2-6 ii libc6 2.19-18+deb8u3 ii libmount1 2.25.2-6 ii libncurses5 5.9+20140913-1+b1 ii libpam0g 1.1.8-3.1+deb8u1 ii libselinux1 2.3-2 ii libslang2 2.3.0-2 ii libsmartcols1 2.25.2-6 ii libtinfo5 5.9+20140913-1+b1 ii libuuid1 2.25.2-6 ii lsb-base 4.1+Debian13+nmu1 ii tzdata 2015g-0+deb8u1 ii zlib1g 1:1.2.8.dfsg-2+b1 util-linux recommends no packages. Versions of packages util-linux suggests: ii dosfstools 3.0.27-1 ii kbd 1.15.5-2 ii util-linux-locales 2.25.2-6 -- no debconf information