On Fri, 21 Dec 2018 17:11:56 -0800 Alex Gould wrote:

[...]
> Dear Maintainer,

Hello Alex,
thanks for your bug report!

> 
> After upgrade to the current version of apt-listbugs, I have been getting 
> messages in my local mail from "Anacron job 'cron.daily'" to root:
> 
> /etc/cron.daily/apt-listbugs:
> logname: no login name
> logname: no login name
> logname: no login name
> logname: no login name
> logname: no login name
> 
> I'm not sure what it means -- is apt-listbugs or anacron trying
> to run a process as a different user?

I am already aware of this bug.

It seems to only happen when anacron is in charge of running cron.daily
jobs (if cron.daily jobs are run by cron, the bug is not triggered).
In a nutshell, apt-listbugs/0.1.26 executes logname, but, for some
mysterious reason (maybe a bug in anacron? I have to investigate...),
when anacron runs cron jobs, it sets an environment where the logname
command fails (with the error message you are seeing).

Unfortunately I noticed the issue only after the upload of
apt-listbugs/0.1.26 to Debian unstable...
Sorry about that.


Anyway, this issue is harmless (the apt-listbugs cron.daily jobs works
correctly, despite spitting error messages), it is just annoying.

I have already worked around the issue and the next upload will include
the patch I prepared.


If the issue annoys you too much, you can manually apply the attached
patch directly to the installed apt-listbugs package, with the
following commands (run as root):

  # cd /usr/lib/ruby/vendor_ruby/aptlistbugs/
  # zcat /tmp/apt-listbugs_logname_bug.diff.gz | patch -p3

assuming you saved the attached patch in the /tmp directory.


Please let me know whether the patch succeeds in suppressing the
annoying error message.

Bye and thanks for your time.



-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: apt-listbugs_logname_bug.diff.gz
Description: application/gzip

Attachment: pgpMZ6Dot1B1G.pgp
Description: PGP signature

Reply via email to