[Pkg-shadow-devel] Reason for hard-coded group name length limit

Angel Tsankov fn42551 at fmi.uni-sofia.bg
Sat Mar 14 08:14:56 UTC 2009


File libmisc/chkname.c says that the 16-character limit on group name length 
is arbitrary:

* Arbitrary limit for group names - max 16
* characters (same as on HP-UX 10).

if (strlen (name) > 16)
    return 0;

RedHat seem to have already changed this limit to be the same as the limit 
user name: https://bugzilla.redhat.com/show_bug.cgi?id=56850

Why is this limit still hard-coded?  It could for instance, be configurable 
at build-time so that people can choose whatever fits their needs best.

Angel Tsankov

More information about the Pkg-shadow-devel mailing list