Package: adduser
Version: 3.152
Tags: patch
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.