summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/diff/diffdir.c')
-rw-r--r--usr.bin/diff/diffdir.c5
1 files changed, 4 insertions, 1 deletions
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;