summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-30 13:29:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-30 13:29:48 +0000
commitfa46861063b44c68532e8385ee1d079fe60cb068 (patch)
tree62708ad4036df46901ff130dc51cccdf27f2ae72 /usr.bin
parentd385705f4dc30b0c3125ad14786cc10185a42fef (diff)
typo
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/chpass/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/chpass/edit.c b/usr.bin/chpass/edit.c
index 43c16e38c92..81a9a92fa52 100644
--- a/usr.bin/chpass/edit.c
+++ b/usr.bin/chpass/edit.c
@@ -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 @@ edit(tempname, pw)
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");