Fix annoying bug with grep and HAMMER
authorMatthias Schmidt <matthias@dragonflybsd.org>
Thu, 18 Dec 2008 10:56:46 +0000 (11:56 +0100)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Thu, 18 Dec 2008 10:56:46 +0000 (11:56 +0100)
commit1f1aa8d7b840c4f625756edd033e90549a1e81f4
treea7629ea486b337e3bd4ddd50041db5174198c315
parente0e6ca4b314f94d53cfb2bd835e27fa08fd78a78
Fix annoying bug with grep and HAMMER

grep foo * on an UFS partition was silent if grep hit a subdirectory.  If
executed on HAMMER, grep complains about "Invalid argument" because directories
in HAMMER are not treated as files.

Before:

cd /usr/src
grep test *
Makefile:       test \
grep: cat: Invalid argument
[...]

After:

grep test *
Makefile:       test \
gnu/usr.bin/grep/grep.c