Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2024 19:40:18 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a700bef1e4ee - main - netbsd-tests: Update a test case to chase grep symlink handling changes
Message-ID:  <202409071940.487JeIlX080740@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a700bef1e4ee3e6f4e1a86a374bf9b4044f69a70

commit a700bef1e4ee3e6f4e1a86a374bf9b4044f69a70
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-09-07 19:39:49 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-09-07 19:39:49 +0000

    netbsd-tests: Update a test case to chase grep symlink handling changes
    
    This test case verifies that grep detects symlink loops when traversing
    a directory hierarchy.
    
    Fixes:          fc12c191c087 ("grep: Default to -p instead of -S.")
    Reviewed by:    ngie, jhb
    Reported by:    Jenkins
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D46544
---
 contrib/netbsd-tests/usr.bin/grep/t_grep.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/netbsd-tests/usr.bin/grep/t_grep.sh b/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
index d2539a8250de..b1412a7a0715 100755
--- a/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
+++ b/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
@@ -81,7 +81,7 @@ recurse_symlink_body()
 
 	atf_check -o file:"$(atf_get_srcdir)/d_recurse_symlink.out" \
 	    -e file:"$(atf_get_srcdir)/d_recurse_symlink.err" \
-	    grep -r string test
+	    grep -rS string test
 }
 
 atf_test_case word_regexps



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409071940.487JeIlX080740>