diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-23 05:40:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-23 05:40:48 +0000 |
commit | 79aa87c8bbcfb06bdbb34eb86059d7282797049f (patch) | |
tree | 4660b011dad39e1854fdadae588988fe034ab209 /usr.bin/chpass | |
parent | e45760a05151133ad5ad1da30c3c6a42c9e628d1 (diff) |
pw_abort() after yp change, does unlock
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/chpass.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/chpass/chpass.c b/usr.bin/chpass/chpass.c index a0796e9c591..4f0b2fa6f70 100644 --- a/usr.bin/chpass/chpass.c +++ b/usr.bin/chpass/chpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chpass.c,v 1.4 1996/08/31 01:55:32 deraadt Exp $ */ +/* $OpenBSD: chpass.c,v 1.5 1996/09/23 05:40:47 deraadt Exp $ */ /* $NetBSD: chpass.c,v 1.8 1996/05/15 21:50:43 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: chpass.c,v 1.4 1996/08/31 01:55:32 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: chpass.c,v 1.5 1996/09/23 05:40:47 deraadt Exp $"; #endif #endif /* not lint */ @@ -200,8 +200,10 @@ main(argc, argv) if (pw_yp(pw, uid)) { pw_error((char *)NULL, 0, 1); exit(1); - } else + } else { + pw_abort(); exit(0); + } } else #endif /* YP */ |