#1108017 adduser: errors out with Perl error when attempting to call logger

Package:
adduser
Source:
adduser
Submitter:
Luca Boccassi
Date:
2025-06-19 01:15:02 UTC
Severity:
normal
Tags:
#1108017#5
Date:
2025-06-19 01:14:07 UTC
From:
To:
Dear Maintainer(s),

When adduser attempts to log to logger it fails with a Perl error.

To reproduce the issue, change the system so that a log message is
produced. For example, delete/move away /etc/adduser.conf and try to
add a user in a chroot:

root@sid:~# adduser test
warn: `/etc/adduser.conf' does not exist. Using defaults.
Insecure $ENV{PATH} while running with -T switch at
/usr/share/perl5/Debian/AdduserLogging.pm line 162.
root@sid:~# echo $?
25

An attempt to fix the issue can be found at:

https://salsa.debian.org/debian/adduser/-/merge_requests/106

Fixes the issue for me, but not sure if it's your preferred solution.