Bug#966119: popularity-contest: Unable to find runuser due to missing /sbin/ in PATH?
On Sat, Jul 25, 2020 at 12:01:39AM +0200, Petter Reinholdtsen wrote:
> [Bill Allombert]
> > We would need to know which popcon version you installed first...
> > Maybe /var/log/dpkg.log still has the info.
>
> The first trace etckeeper have of popularity-contest is version 1.56
> installed 2013-07-16 22:51+0200. I believe this was the initial
> installation. Then a small interlude with 1.63~pre2 before returning
> back to 1.56, followed by 1.61, 1.64 and finally 1.67.
Then /etc/cron.d/popularity-contest was generated by 1.63~pre2 which
was missing the PATH line which added in 1.63:
diff -Nru popularity-contest-1.63~pre2/debian/postinst
popularity-contest-1.63/debian/postinst
--- popularity-contest-1.63~pre2/debian/postinst 2015-06-07
17:27:37.000000000 +0200
+++ popularity-contest-1.63/debian/postinst 2015-09-13
20:33:27.000000000 +0200
@@ -27,7 +27,7 @@
EMPTYID="d41d8cd98f00b204e9800998ecf8427e"
generate_id() {
- if [ -x /usr/bin/uuidgen ] ; then
+ if which uuidgen >/dev/null 2>&1; then
MY_HOSTID=`uuidgen | tr -d -`
else
MY_HOSTID=`dd if=/dev/urandom bs=1k count=1 2>/dev/null
| md5sum | sed 's/ -//'''`
@@ -45,6 +45,7 @@
FILE=/etc/cron.daily/popularity-contest
cat > /etc/cron.d/popularity-contest <<EOF
SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
$MIN $HOUR * * * root test -x $FILE && $FILE --crond
EOF
}
But 1.63~pre2 was never uploaded to Debian proper, so only an handful of
people were affected.
Cheers,
--
Bill. <ballombe@debian.org>
Imagine a large red swirl here.
Reply to: