From owner-freebsd-current Wed Jan 22 7:40:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D56E37B401 for ; Wed, 22 Jan 2003 07:40:23 -0800 (PST) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B9DB43ED8 for ; Wed, 22 Jan 2003 07:40:22 -0800 (PST) (envelope-from hetzels@westbend.net) Received: from WBIw009.westbend.net (wbiw009 [216.47.253.29]) by mail.westbend.net (8.12.6/8.12.6) with ESMTP id h0MFeESG061890; Wed, 22 Jan 2003 09:40:14 -0600 (CST) (envelope-from hetzels@westbend.net) Received: from WBIw009.westbend.net (localhost [127.0.0.1]) by WBIw009.westbend.net (8.12.6/8.12.6) with ESMTP id h0MFeDvY031432; Wed, 22 Jan 2003 09:40:13 -0600 (CST) (envelope-from hetzels@westbend.net) Received: (from root@localhost) by WBIw009.westbend.net (8.12.6/8.12.6/Submit) id h0MFe9Q5031431; Wed, 22 Jan 2003 09:40:09 -0600 (CST) Message-Id: <200301221540.h0MFe9Q5031431@WBIw009.westbend.net> From: "Scot Hetzel" To: "Mike Makonnen" Cc: References: <200301212250.h0LMoOXW029934@WBIw009.westbend.net> <20030122011847.OGBD21001.pop015.verizon.net@localhost> Subject: Re: Adduser difference between 5.0 and earlier versions Date: Wed, 22 Jan 2003 09:31:32 -0600 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=0.3 required=8.0 tests=REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's the requested changes to make it re'ask the question on an invalid input. I left the code in for the default answer, but commented out. Scot Index: adduser.sh =================================================================== RCS file: /home/ncvs/src/usr.sbin/adduser/adduser.sh,v retrieving revision 1.3 diff -u -r1.3 adduser.sh --- adduser.sh 3 Dec 2002 05:41:09 -0000 1.3 +++ adduser.sh 22 Jan 2003 15:38:02 -0000 @@ -871,4 +871,22 @@ fi else input_interactive + while : ; do + echo -n "Add another user? (yes/no): " + read _input +# [ -z "$_input" ] && _input="No" + case $_input in + [Yy][Ee][Ss]|[Yy][Ee]|[Yy]) + input_interactive + continue + ;; + [Nn][Oo]|[Nn]) + echo "Goodbye!" + ;; + *) + continue + ;; + esac + break + done fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message