> 
> I tried that on archlinux. The above program still produces EINVAL for
> login names between 32 and 255 inclusive.
> 
> _SC_LOGIN_NAME_MAX is 256 on that platform.
> 
> John
> 

hi,

earlier i tried with literal "AAAAAA", which was probably not what you
meant.
it produced a "not found".
using an affected user name yields (with both your programs):
getpwnam_r: Invalid argument
while an existing shell account yields its UID:
Name: ; UID: 1001

for me its not clear whats the difference between a literal AAAA string
and an existing username not in passwd (why one produces an error and
one doesnt).

sorry for not reading carefully earlier…

georg

Reply via email to