From 22c5346d7534a0a1b0eb14da9148fa9fcc611b08 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 8 Jul 2003 04:51:31 +0000 Subject: fix pasto in last commit --- usr.bin/diff/diffreg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index 75b95c5b6a4..69c6dd9a511 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffreg.c,v 1.29 2003/07/08 04:45:32 millert Exp $ */ +/* $OpenBSD: diffreg.c,v 1.30 2003/07/08 04:51:30 millert Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -65,7 +65,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.29 2003/07/08 04:45:32 millert Exp $"; +static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.30 2003/07/08 04:51:30 millert Exp $"; #endif /* not lint */ #include @@ -311,7 +311,7 @@ diffreg(char *ofile1, char *ofile2, int flags) status |= 2; goto closem; } - } else if (!S_ISREG(stb1.st_mode)) { + } else if (!S_ISREG(stb2.st_mode)) { file2 = copytemp(file2, 2); if (file2 == NULL || stat(file2, &stb2) < 0) { warn("%s", file2); -- cgit v1.2.3