diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-28 19:13:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-28 19:13:27 +0000 |
commit | 3c691d4a3908cdafd4370c3cf848b9a9e5a858cb (patch) | |
tree | 430ad6c0989392317c61aeffa0da36cee1eaa427 /usr.bin/chpass | |
parent | 1d5df6ec93a3187d4ad3b6403c36e614916afc90 (diff) |
unlink tmpfile; noted by chris@dqc.org
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/edit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/chpass/edit.c b/usr.bin/chpass/edit.c index ab9d3dfc1ce..d070e2a6151 100644 --- a/usr.bin/chpass/edit.c +++ b/usr.bin/chpass/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.14 1998/05/28 10:17:49 deraadt Exp $ */ +/* $OpenBSD: edit.c,v 1.15 1998/05/28 19:13:26 deraadt Exp $ */ /* $NetBSD: edit.c,v 1.6 1996/05/15 21:50:45 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)edit.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: edit.c,v 1.14 1998/05/28 10:17:49 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: edit.c,v 1.15 1998/05/28 19:13:26 deraadt Exp $"; #endif #endif /* not lint */ @@ -76,8 +76,10 @@ edit(tempname, pw) unlink(tempname); pw_error(NULL, 0, 0); } - if (verify(tempname, pw)) + if (verify(tempname, pw)) { + unlink(tempname); break; + } pw_prompt(); } } |