Subject: bin/29772: chpass temporary files in /etc not always unlinked
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <keso@impul.se>
List: netbsd-bugs
Date: 03/23/2005 14:45:00
>Number:         29772
>Category:       bin
>Synopsis:       chpass temporary files in /etc not always unlinked
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 23 14:45:00 +0000 2005
>Originator:     Andreas Kling
>Release:        NetBSD-2.0
>Organization:
>Environment:
% uname -a
NetBSD pengin.rootgirl.net 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
If the editor invoked by 'chpass' is killed while editing, its temporary file in /etc is not removed, and owned by the user running chpass.

It's easy to fill up the /etc filesystem this way.
>How-To-Repeat:
1. chpass
2. ^Z
3. kill -9 %1
4. ls -l /etc/pw.*
>Fix: