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.