diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-06-27 20:28:14 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-06-27 20:28:14 +0000 |
commit | 8ca9fcb59914c26dd22d90927b34818d27afa9e3 (patch) | |
tree | 72509167fed3f2fec91c8a3ac92350c308be686a /usr.bin/diff/diffreg.c | |
parent | d714625c9319f21bad27b2bee4265317717892ba (diff) |
-a to force ascii compare. ok millert
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r-- | usr.bin/diff/diffreg.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |