* 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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user