From 2a1593df6988ca85abee7f39eb02a22b6cb6f306 Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 27 Jun 2003 20:28:13 +0000 Subject: -a to force ascii compare. ok millert --- usr.bin/diff/diffdir.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/diff/diffdir.c') diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c index 1ba5117482a..d25d4d48491 100644 --- a/usr.bin/diff/diffdir.c +++ b/usr.bin/diff/diffdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffdir.c,v 1.14 2003/06/26 18:19:29 millert Exp $ */ +/* $OpenBSD: diffdir.c,v 1.15 2003/06/27 20:28:13 tedu Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -423,6 +423,9 @@ ascii(int f) char buf[BUFSIZ], *cp; int cnt; + if (aflag) + return (1); + lseek(f, (off_t)0, SEEK_SET); cnt = read(f, buf, BUFSIZ); cp = buf; -- cgit v1.2.3-59-g8ed1b