Package: sudo Version: 1.9.5p2-3 Severity: normal Dear Maintainer,
If a Cmnd_Alias (others may also be affected) is defined twice, the error message produced is misleading: $ cat >test <<EOF > Cmnd_Alias BUG_TEST = /bin/true > Cmnd_Alias BUG_TEST = /bin/true > EOF $ visudo -c -f test test:2:32: Alias "en_GB.UTF-8" already defined Cmnd_Alias BUG_TEST = /bin/true ^ The message appears to include the contents of the $LANG environment variable, rather than the name of the alias in question. That said, if I set LANG explicitly I get a blank alias name instead: $ LANG=en_GB.C visudo -c -f test test:2:32: Alias "" already defined Cmnd_Alias BUG_TEST = /bin/true ^ I can reproduce this on multiple very different systems, so I'm confident that this isn't local weirdness. Thanks, Chris -- System Information: Debian Release: bullseye/sid APT prefers testing-security APT policy: (500, 'testing-security'), (500, 'testing'), (100, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-4-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages sudo depends on: ii libaudit1 1:3.0-2 ii libc6 2.31-9 ii libpam-modules 1.4.0-6 ii libpam0g 1.4.0-6 ii libselinux1 3.1-3 ii lsb-base 11.1.0 ii zlib1g 1:1.2.11.dfsg-2 sudo recommends no packages. sudo suggests no packages. -- Configuration Files: /etc/pam.d/sudo changed [not included] /etc/sudoers [Errno 13] Permission denied: '/etc/sudoers' /etc/sudoers.d/README [Errno 13] Permission denied: '/etc/sudoers.d/README' -- no debconf information