Package: chkrootkit Version: 0.54-1+b2 Severity: normal Tags: patch X-Debbugs-Cc: richard.lewis.deb...@googlemail.com
Dear Maintainer, Line 814 of /usr/sbin/chkrootkit assumes the shell is bash, and passes '-e' to echo - this is not supported by POSIX and I get a spurious '-e' in the output of the cron job. (checkbashisms(1) also spots this) The attached patch removes the '-e' (and fixes the tabs) thanks for considering -- System Information: Debian Release: 11.0 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/1 CPU thread) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages chkrootkit depends on: ii binutils 2.35.2-2 ii debconf [debconf-2.0] 1.5.77 ii libc6 2.31-13 ii net-tools 1.60+git20181103.0eebece-1 ii openssh-client 1:8.4p1-5 ii procps 2:3.3.17-5 chkrootkit recommends no packages. chkrootkit suggests no packages. -- Configuration Files: /etc/cron.daily/chkrootkit changed [not included] -- debconf information excluded
--- usr.sbin.chkrootkit.orig 2021-07-25 19:48:31.000000000 +0100 +++ usr.sbin.chkrootkit.new 2021-09-12 21:20:26.753997683 +0100 @@ -811,7 +811,7 @@ outmsg="${files}\n${dirs}" fi if [ "${QUIET}" = "t" -a "$outmsg" ]; then - echo -e "The following suspicious files and directories were found:\n\n $outmsg" + echo "The following suspicious files and directories were found:\n\n $outmsg" fi fi