From owner-freebsd-bugs Thu Jan 1 22:10:06 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA11049 for bugs-outgoing; Thu, 1 Jan 1998 22:10:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA11035; Thu, 1 Jan 1998 22:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 1 Jan 1998 22:10:01 -0800 (PST) Resent-Message-Id: <199801020610.WAA11035@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, toasty@dragondata.com Received: from home.dragondata.com (root@home.dragondata.com [204.137.237.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA10827 for ; Thu, 1 Jan 1998 22:05:34 -0800 (PST) (envelope-from toasty@home.dragondata.com) Received: (from root@localhost) by home.dragondata.com (8.8.5/8.8.5) id AAA06748; Fri, 2 Jan 1998 00:05:25 -0600 (CST) Message-Id: <199801020605.AAA06748@home.dragondata.com> Date: Fri, 2 Jan 1998 00:05:25 -0600 (CST) From: toasty@dragondata.com Reply-To: toasty@dragondata.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5408: /usr/sbin/adduser gives wrong error message Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: