Re: [PATCH 1/2] agetty: Fix input of non-ASCII characters in get_logname()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 01. 03. 19 v 9:04 Lubomir Rintel napsal(a):
> 
>> the input to ASCII only. As the code does not read whole characters,
>> isascii(ascval) and isprint(ascval) returns nonsenses after entering a
>> non-ASCII character.
>>

I did a small research about special characters in logname (with UTF-8 locales):

works in:
chown
su
ls -l
whoami
chpasswd
passwd

explicitly rejected in:
useradd (shadow)

Independently on the policy of allowing/disallowing accented characters in lognames, not responding to some key presses in agetty is counter intuitive, especially if login (reading logname after first failed login attempt) accepts them.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@xxxxxxxx
Křižíkova 148/34 (Corso IIa)                    tel: +420 284 084 060
186 00 Praha 8-Karlín                          fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux