summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-07-08 04:51:30 +0000
committermillert <millert@openbsd.org>2003-07-08 04:51:30 +0000
commit318c3a70a6ae36d62baed4e0e73980a7582d115e (patch)
tree94a1d7ce7f4ed0790d5bbdaddb8b890c333427a2 /usr.bin/diff/diffreg.c
parento Avoid a temp file if using stdin and stdin is redirected from a regular file (diff)
downloadwireguard-openbsd-318c3a70a6ae36d62baed4e0e73980a7582d115e.tar.xz
wireguard-openbsd-318c3a70a6ae36d62baed4e0e73980a7582d115e.zip
fix pasto in last commit
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c6
1 files 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 <sys/types.h>
@@ -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);