Package: adduser Version: 3.152 Severity: normal X-Debbugs-Cc: [email protected]
Dear Maintainer, When creating a new user, adduser incorrectly handles UTF-8 filenames located in /etc/skel. If /etc/skel contains directories or files with non-ASCII (UTF-8) characters, these are copied to the new user's home directory with a broken encoding. In some cases, adduser fails completely with an "invalid characters" error. Steps to reproduce: Ensure the system locale is set to UTF-8 (for example: LANG=tr_TR.UTF-8). Create the following structure: /etc/skel/Masaüstü/test.txt /etc/skel/Masaüstü/ŞĞÇaŞ-tst.txt Run: adduser testuser Actual result The directory Masaüstü is copied as: Masaüstü When a file such as ŞĞÇaŞ-tst.txt exists, adduser may fail during user creation with an error similar to: invalid characters or incorrectly named. Expected result UTF-8 directory and file names in /etc/skel should be copied verbatim to the user's home directory. adduser should not fail when encountering valid UTF-8 filenames. Locale-aware filename handling should be preserved during the copy process. Note: It runs perfectly on debian bookworm. -- System Information: Debian Release: 13.3 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.63+deb13-amd64 (SMP w/2 CPU threads; PREEMPT) Locale: LANG=tr_TR.UTF-8, LC_CTYPE=tr_TR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages adduser depends on: ii passwd 1:4.17.4-2 adduser recommends no packages. Versions of packages adduser suggests: ii cron 3.0pl1-197 ii liblocale-gettext-perl 1.07-7+b1 ii perl 5.40.1-6 pn quota <none> -- no debconf information

