From 3984d99a8652f22a6b4d73e744af3dd3f2592208 Mon Sep 17 00:00:00 2001 From: Christian Kreibich Date: Mon, 23 Nov 2020 18:34:07 -0800 Subject: [PATCH] Make diff-remove-abspath canonifier match on non-whitespace paths only This avoids swallowing multiple separate paths separated by unrelated content into one substitution, like here: orig_p=59856<...>/tcp] -> orig_p=59856/tcp, resp_h=192.150.187.43, resp_p=80/tcp] --- testing/scripts/diff-remove-abspath | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/scripts/diff-remove-abspath b/testing/scripts/diff-remove-abspath index a981206e83..0d84aafd7e 100755 --- a/testing/scripts/diff-remove-abspath +++ b/testing/scripts/diff-remove-abspath @@ -9,4 +9,4 @@ else fi $sed 's#/+#/#g' | \ -sed 's#/\([^/]\{1,\}/\)\{1,\}\([^/]\{1,\}\)#<...>/\2#g' +$sed 's#/([^\t :/]{1,}/){1,}([^\t :/]{1,})#<...>/\2#g'