From owner-freebsd-bugs Wed Mar 21 1:20:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2691037B720 for ; Wed, 21 Mar 2001 01:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2L9K1527170; Wed, 21 Mar 2001 01:20:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5B73237B719 for ; Wed, 21 Mar 2001 01:13:25 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2L9DPR26693; Wed, 21 Mar 2001 01:13:25 -0800 (PST) (envelope-from nobody) Message-Id: <200103210913.f2L9DPR26693@freefall.freebsd.org> Date: Wed, 21 Mar 2001 01:13:25 -0800 (PST) From: dan@freebsddiary.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/25961: rmuser is not case sensitive Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25961 >Category: bin >Synopsis: rmuser is not case sensitive >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 21 01:20:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Dan Langille >Release: FreeBSD 4.3-beta >Organization: The FreeBSD Diary >Environment: FreeBSD [suppressed].net.au 4.3-BETA FreeBSD 4.3-BETA #0: Mon Mar 12 08:58:20 CST 2001 root@[suppressed].net.au:/usr/src/sys/compile/PENOLA i386 >Description: rmuser is not case sensitive. It will confirm the user you wish to delete, but then it deletes more than one user. >How-To-Repeat: adduser JOHN, adduser john, them rmuser john, both users are removed. >Fix: Linh Pham reported this in response to my post in -questions (200103192332.f2JNWXb68437@ns1.unixathome.org): In the rmuser script, there is a Search/Replace call that has /io, which searches in non-case sensitive mode. Below is a clip of what I have under 4.2-STABLE: while () { if (not /^\Q$login_name:/io) { print NEW_PW; } else { print STDERR "Dropped entry for $login_name\n" if \ $debug; $skipped = 1; } } Removing the i would probably resolve the non-case sensitive issue of rmuser. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message