* NEWS, configure.in, libmisc/chkname.c: make group max length a

configure option.  The configure behavior encoded is:
	<no option> -> default of 16 (like today);
	--with-group-name-max-length -> default of 16;
	--without-group-name-max-length -> no max length;
	--with-group-name-max-length=n > max is set to n.
This commit is contained in:
nekral-guest
2008-11-30 01:29:40 +00:00
parent 93358ac3de
commit c28c443d8f
4 changed files with 28 additions and 2 deletions

View File

@@ -100,9 +100,8 @@ bool is_valid_group_name (const char *name)
* Arbitrary limit for group names - max 16
* characters (same as on HP-UX 10).
*/
if (strlen (name) > 16) {
if (GROUP_NAME_MAX_LENGTH && strlen (name) > GROUP_NAME_MAX_LENGTH)
return false;
}
return is_valid_name (name);
}