-/* $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 $ */
/*-
#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 */
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");