* libmisc/chkname.c: Remove outdated comments.

This commit is contained in:
nekral-guest 2008-12-22 22:08:13 +00:00
parent 9d977dba8e
commit 6405b58a98
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
* src/groupadd.c, src/groupdel.c, src/groupmod.c: Re-indent. * src/groupadd.c, src/groupdel.c, src/groupmod.c: Re-indent.
* src/groupmod.c: Do not add the command synopsis to the main () * src/groupmod.c: Do not add the command synopsis to the main ()
documentation. This avoids outdated information. documentation. This avoids outdated information.
* libmisc/chkname.c: Remove outdated comments.
2008-12-22 Nicolas François <nicolas.francois@centraliens.net> 2008-12-22 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -85,7 +85,7 @@ bool is_valid_user_name (const char *name)
/* /*
* User names are limited by whatever utmp can * User names are limited by whatever utmp can
* handle (usually max 8 characters). * handle.
*/ */
if (strlen (name) > sizeof (ut.ut_user)) { if (strlen (name) > sizeof (ut.ut_user)) {
return false; return false;
@ -97,8 +97,8 @@ bool is_valid_user_name (const char *name)
bool is_valid_group_name (const char *name) bool is_valid_group_name (const char *name)
{ {
/* /*
* Arbitrary limit for group names - max 16 * Arbitrary limit for group names.
* characters (same as on HP-UX 10). * HP-UX 10 limits to 16 characters
*/ */
if (GROUP_NAME_MAX_LENGTH && strlen (name) > GROUP_NAME_MAX_LENGTH) if (GROUP_NAME_MAX_LENGTH && strlen (name) > GROUP_NAME_MAX_LENGTH)
return false; return false;