=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/chpass/edit.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- src/usr.bin/chpass/edit.c 1996/08/30 13:29:12 1.6 +++ src/usr.bin/chpass/edit.c 1996/08/30 13:29:47 1.7 @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.6 1996/08/30 13:29:12 deraadt Exp $ */ +/* $OpenBSD: edit.c,v 1.7 1996/08/30 13:29:47 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.6 1996/08/30 13:29:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: edit.c,v 1.7 1996/08/30 13:29:47 deraadt Exp $"; #endif #endif /* not lint */ @@ -69,7 +69,7 @@ if (lstat(tempname, &begin) == -1 || S_ISLNK(begin.st_mode)) pw_error(tempname, 1, 1); pw_edit(1, tempname); - if (lstat(tempname, &end) == -1 || S_ISLNK(begin.st_mode)) + if (lstat(tempname, &end) == -1 || S_ISLNK(end.st_mode)) pw_error(tempname, 1, 1); if (begin.st_mtime == end.st_mtime) { warnx("no changes made");