[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v3.11-12-gd1c3fbe
From: |
Jim Meyering |
Subject: |
grep branch, master, updated. v3.11-12-gd1c3fbe |
Date: |
Fri, 21 Jul 2023 20:43:09 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via d1c3fbe7722662b449bae23130b644c726473fe3 (commit)
from 105e432d7fb4ff51f11097242b9ecb8d73c40aea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=d1c3fbe7722662b449bae23130b644c726473fe3
commit d1c3fbe7722662b449bae23130b644c726473fe3
Author: Jim Meyering <meyering@meta.com>
Date: Fri Jul 21 17:42:23 2023 -0700
doc: mention the 100,000-entry ENOTSUP bug
* NEWS: document the fixed bug.
* tests/100k-entries: New file, to test for this.
Reported by Vincent Lefevre via Santiago Ruano Rincón in
https://bugs.gnu.org/64773
Fixed by gnulib commit v0.1-6175-gd4d8abb39e.
diff --git a/NEWS b/NEWS
index c729361..b0d1749 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,15 @@ GNU grep NEWS -*- outline
-*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+** Bug fixes
+
+ Searching a directory with at least 100,000 entries no longer fails
+ with "Operation not supported" and exit status 2. Now, this prints 1
+ and no diagnostic, as expected:
+ $ mkdir t && cd t && seq 100000|xargs touch && grep -r x .; echo $?
+ 1
+ [bug introduced in grep 3.11]
+
** Changes in behavior
On Windows platforms and on AIX in 32-bit mode, grep now supports
diff --git a/tests/100k-entries b/tests/100k-entries
new file mode 100755
index 0000000..382ab3c
--- /dev/null
+++ b/tests/100k-entries
@@ -0,0 +1,15 @@
+#!/bin/sh
+# This would make grep-3.11 fail with ENOTSUP and exit 2.
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+expensive_
+
+fail=0
+
+mkdir t || framework_failure_
+(cd t && seq 100000|xargs touch) || framework_failure_
+
+returns_ 1 grep -r x t > out 2> err
+compare /dev/null out || fail=1
+compare /dev/null err || fail=1
+
+Exit $fail
-----------------------------------------------------------------------
Summary of changes:
NEWS | 9 +++++++++
tests/100k-entries | 15 +++++++++++++++
2 files changed, 24 insertions(+)
create mode 100755 tests/100k-entries
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v3.11-12-gd1c3fbe,
Jim Meyering <=