From 3f8e756bb946f2b52ef7332b5732ffdc77c162bd Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 6 Jun 2009 15:37:28 +0000 Subject: Oops, forgot to pass dflags to diffreg. Now the flags work again. OK millert --- usr.bin/diff/diff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/diff/diff.c') diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index d5dde3b9bae..373fe43518a 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.51 2009/06/06 15:00:27 ray Exp $ */ +/* $OpenBSD: diff.c,v 1.52 2009/06/06 15:37:28 ray Exp $ */ /* * Copyright (c) 2003 Todd C. Miller @@ -21,7 +21,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diff.c,v 1.51 2009/06/06 15:00:27 ray Exp $"; +static const char rcsid[] = "$OpenBSD: diff.c,v 1.52 2009/06/06 15:37:28 ray Exp $"; #endif /* not lint */ #include @@ -256,7 +256,7 @@ main(int argc, char **argv) if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { if (format == D_IFDEF) errx(2, "-D option not supported with directories"); - diffdir(argv[0], argv[1]); + diffdir(argv[0], argv[1], dflags); } else { if (S_ISDIR(stb1.st_mode)) { argv[0] = splice(argv[0], argv[1]); @@ -268,7 +268,7 @@ main(int argc, char **argv) if (stat(argv[1], &stb2) < 0) err(2, "%s", argv[1]); } - print_status(diffreg(argv[0], argv[1], 0), argv[0], argv[1], + print_status(diffreg(argv[0], argv[1], dflags), argv[0], argv[1], NULL); } exit(status); -- cgit v1.2.3-59-g8ed1b