From 8ca9fcb59914c26dd22d90927b34818d27afa9e3 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 27 Jun 2003 20:28:14 +0000 Subject: -a to force ascii compare. ok millert --- usr.bin/diff/diffreg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/diff/diffreg.c') diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index be2e9bfe466..e21bd4a3773 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffreg.c,v 1.22 2003/06/26 22:04:45 millert Exp $ */ +/* $OpenBSD: diffreg.c,v 1.23 2003/06/27 20:28:13 tedu Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -992,6 +992,9 @@ asciifile(FILE *f) char buf[BUFSIZ], *cp; int cnt; + if (aflag) + return (1); + fseek(f, 0L, SEEK_SET); cnt = fread(buf, 1, BUFSIZ, f); cp = buf; -- cgit v1.2.3