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

Mike Frysinger vapier at gentoo.org
Sat Mar 14 11:04:53 UTC 2009


On Saturday 14 March 2009 04:14:56 Angel Tsankov wrote:
> 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
> for
> 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.

if you read the latest svn code, you'll see that it's already been changed to 
a configure flag
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20090314/6633524e/attachment.pgp 


More information about the Pkg-shadow-devel mailing list