summaryrefslogtreecommitdiff
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-04 07:47:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-04 07:47:10 +0000
commit6a2c8ffb26520b24493fe3369cb2d0ba66953ccf (patch)
tree9837b560d05749e344b2ba3c3c21b9ae42622f20 /usr.sbin/adduser
parent038797e62f98d629f1e4112e0ba7c263e248e482 (diff)
another username limit issue; ianm@cit.uws.edu.au
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/rmuser.perl6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/adduser/rmuser.perl b/usr.sbin/adduser/rmuser.perl
index 2f9661fdf78..0e97f722364 100644
--- a/usr.sbin/adduser/rmuser.perl
+++ b/usr.sbin/adduser/rmuser.perl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# -*- perl -*-
#
-# $OpenBSD: rmuser.perl,v 1.3 2000/11/25 23:22:33 millert Exp $
+# $OpenBSD: rmuser.perl,v 1.4 2001/09/04 07:47:09 deraadt Exp $
#
# Copyright 1995, 1996 Guy Helmer, Madison, South Dakota 57042.
# All rights reserved.
@@ -228,8 +228,8 @@ sub get_login_name {
chomp $login_name;
if (!($login_name =~ /^\w+$/)) {
print STDERR "Sorry, login name must contain alphanumeric characters only.\n";
- } elsif (length($login_name) > 16 || length($login_name) == 0) {
- print STDERR "Sorry, login name must be 16 characters or less.\n";
+ } elsif (length($login_name) > 31 || length($login_name) == 0) {
+ print STDERR "Sorry, login name must be 31 characters or less.\n";
} else {
$done = 1;
}