diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-05-15 09:26:02 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-05-15 09:27:53 -0700 |
commit | 582cdfacf297181c2c5ffec83fd8a3c0f6562fc6 (patch) | |
tree | 8f47211239f95c6e25f191e7bc48a950aff320e3 /bootstrap.conf | |
parent | 6c4a43ab84bc20d39128c390d14fba36f668ad98 (diff) | |
download | grep-582cdfacf297181c2c5ffec83fd8a3c0f6562fc6.tar.gz |
grep: sparse files are now considered binary
* NEWS: Document this.
* doc/grep.texi (File and Directory Selection): Likewise.
* bootstrap.conf (gnulib_modules): Add stat-size.
* src/main.c: Include stat-size.h.
(usable_st_size): New function, mostly stolen from coreutils.
(fillbuf): Use it.
(file_is_binary): New function, which looks for holes too.
(grep): Use it.
* tests/Makefile.am (TESTS): Add big-hole.
* tests/big-hole: New file.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index a7853c92..57749b42 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -69,6 +69,7 @@ realloc-gnu regex same-inode ssize_t +stat-size stddef stdlib stpcpy |