From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 4 01:00:41 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CD4316A4CE for ; Wed, 4 Feb 2004 01:00:41 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E71743D45 for ; Wed, 4 Feb 2004 01:00:36 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1490aFR061520 for ; Wed, 4 Feb 2004 01:00:36 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1490aes061519; Wed, 4 Feb 2004 01:00:36 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 4 Feb 2004 01:00:36 -0800 (PST) Resent-Message-Id: <200402040900.i1490aes061519@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Edwin Groothuis Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2874A16A4CE for ; Wed, 4 Feb 2004 00:58:22 -0800 (PST) Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C617343D3F for ; Wed, 4 Feb 2004 00:58:20 -0800 (PST) (envelope-from edwin@mavetju.org) Received: by mailout2.barnet.com.au (Postfix, from userid 27) id 0B953AA61D6; Wed, 4 Feb 2004 19:58:19 +1100 (EST) Received: from extmail-auth.barnet.com.au (localhost [127.0.0.1]) by extmail.barnet.com.au (Postfix) with ESMTP id AD43CB29D1C for ; Wed, 4 Feb 2004 19:58:17 +1100 (EST) Received: from k7.mavetju (edwin.adsl.barnet.com.au [203.111.122.2]) by extmail-auth.barnet.com.au (Postfix) with ESMTP id 44CFD19379 for ; Wed, 4 Feb 2004 19:58:13 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id EB9376A7101; Wed, 4 Feb 2004 19:58:12 +1100 (EST) Message-Id: <20040204085812.EB9376A7101@k7.mavetju> Date: Wed, 4 Feb 2004 19:58:12 +1100 (EST) From: Edwin Groothuis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/62334: vipw doesn't see changes if re-edit for the second time X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Edwin Groothuis List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 09:00:41 -0000 >Number: 62334 >Category: bin >Synopsis: vipw doesn't see changes if re-edit for the second time >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 Feb 04 01:00:35 PST 2004 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: System: FreeBSD k7.mavetju 4.8-RELEASE FreeBSD 4.8-RELEASE #1: Mon Jan 5 18:59:31 EST 2004 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386 Also seen on -current of January 26th 2004 >Description: If you run "vipw", make a change but make a mistake, and quit the editor, you are warned about the mistake and are send back to the editor. If you then don't save the file, but just quit, vipw will say "no changes" and not update the old /etc/passwd but just quit. >How-To-Repeat: vipw edit an entry but make a mistake (remove a : too much) :wq choose to re-edit :q! vipw now says "vipw: no changes made", which is true with regarding to the broken version of passwd which was just edited, but not with regarding to the original version of passwd which was edited. I expected to get thrown back into vi to fix the passwd file, or at least get the option of aborting or going on. >Fix: - >Release-Note: >Audit-Trail: >Unformatted: