diff options
author | 2003-06-27 20:28:13 +0000 | |
---|---|---|
committer | 2003-06-27 20:28:13 +0000 | |
commit | 2a1593df6988ca85abee7f39eb02a22b6cb6f306 (patch) | |
tree | 7826bfd9da745ebb02bce3cf17afacf6a2bffb4e /usr.bin/diff/diffreg.c | |
parent | more quirks from netbsd (diff) | |
download | wireguard-openbsd-2a1593df6988ca85abee7f39eb02a22b6cb6f306.tar.xz wireguard-openbsd-2a1593df6988ca85abee7f39eb02a22b6cb6f306.zip |
-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; |