Date: Fri, 2 Jan 1998 00:05:25 -0600 (CST) From: toasty@dragondata.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5408: /usr/sbin/adduser gives wrong error message Message-ID: <199801020605.AAA06748@home.dragondata.com> Resent-Message-ID: <199801020610.WAA11035@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5408 >Category: bin >Synopsis: /usr/sbin/adduser gives wrong error message >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 1 22:10:00 PST 1998 >Last-Modified: >Originator: Kevin Day >Organization: DragonData >Release: FreeBSD 2.2.1-RELEASE i386 >Environment: /usr/sbin/adduser on any FreeBSD system >Description: adduser gives an incorrect response when a blank line is entered when it is expecting a username. >How-To-Repeat: Run adduser and press ENTER instead of typing a username >Fix: --- adduser Thu Jan 1 23:54:33 1998 +++ adduser.new Fri Jan 2 00:00:39 1998 @@ -308,7 +308,11 @@ while(1) { $name = &confirm_list("Enter username", 1, "A-Za-z0-9_", ""); + if ($name eq "A-Za-z0-9_") { + warn "Invalid username\a\n"; + next; + } if (length($name) > 8) { warn "Username is longer than 8 chars\a\n"; next; >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801020605.AAA06748>