grep: Restore modification for HAMMER FS
authorJohn Marino <draco@marino.st>
Tue, 8 May 2012 16:25:35 +0000 (18:25 +0200)
committerJohn Marino <draco@marino.st>
Tue, 8 May 2012 21:55:45 +0000 (23:55 +0200)
commit95cd2e3aa78765a18212ce0932a5edad68e56f66
treed23ea5b8a07067ab26fa79fcf25c466e83b4bdb5
parent073c18e488955d8e490953c2263bda1886147517
grep: Restore modification for HAMMER FS

The first version of this modification was created by Matthias Schmidt.
Unmodified, grep used on a HAMMER filesystem will emit "Invalid argument"
when scanning directories because HAMMER doesn't treat them as files.

Unmodified behavior:
> cd /usr/src
> grep test: *
Makefile:test:
grep: cat: Invalid argument
[...]

After modification:
> cd /usr/src
> grep test: *
Makefile:test:

The modification was removed because it didn't merge simply with the
grep upgrade from 2.9 to 2.12.  Now that the merge is complete, the
new version of the modification is applied to restore the correct
behavior of grep on the HAMMER filesystem.
contrib/grep/src/main.c