summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2024-01-31 13:37:37 +0100
committerJean Delvare <jdelvare@suse.de>2024-01-31 13:37:37 +0100
commita60135acb1d5b908fc6c4b795e3b870fbb16fa0d (patch)
treee09d72306072d6e956f8a22cc6870f3f4a1f41d4
parentb969b6ee1edc982c3b8d9e8902e6a7756b0e362b (diff)
downloadquilt-a60135acb1d5b908fc6c4b795e3b870fbb16fa0d.tar.gz
Fix awk regexp escape sequence
Gawk version 5.0.0 and later will complain when escaping a sequence in a regexp, which didn't need to be escaped. Drop the unneeded escape character to silent the warning. Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r--quilt/scripts/patchfns.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/quilt/scripts/patchfns.in b/quilt/scripts/patchfns.in
index 276c27e..aefb279 100644
--- a/quilt/scripts/patchfns.in
+++ b/quilt/scripts/patchfns.in
@@ -658,8 +658,8 @@ filenames_in_patch()
{ if (sub(/^... /, "") == 0)
next
# File name may be quoted
- if (sub(/^\"/, ""))
- sub(/\"(\t.*|$)/, "")
+ if (sub(/^"/, ""))
+ sub(/"(\t.*|$)/, "")
else
sub(/\t.*/, "")
if ($0 == "" || $0 == "/dev/null")