Re: Maximum length of userid on Fedora Linux

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

 



2010/3/28 Miloslav Trmač <mitr@xxxxxxxx>:
> Jochen Schmitt píše v Ne 28. 03. 2010 v 11:38 +0200:
>> Am 27.03.2010 22:02, schrieb Miloslav Trmač:
>> > What's special about "16"?  Why not 8, 15, 17, 24, 32?
>> A user has reported a crash about blender on bugzilla.
>>
>> The examination of the bug shows, that there is a assignement where
>> a userid was copied into a array which is decleared as char [16], so
>> I though to memorize that I have read sometihing about 16 character
>> as a maximum for a userid on Unix.
> Oh.  In that case, use LOGIN_NAME_MAX from <limits.h> (256 on my
> system).

Or sysconf(_SC_LOGIN_NAME_MAX) to get the correct value at runtime for
the system you are running on.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux