rpmrebuild/backport-fix-backslash-in-filename.patch

28 lines
690 B
Diff
Raw Normal View History

2024-11-21 17:01:36 +08:00
From 44f346694bbcce7769f014c91d4330b7103e7cb1 Mon Sep 17 00:00:00 2001
From: Eric Gerbier <gerbier@users.sourceforge.net>
Date: Mon, 9 Sep 2024 08:01:32 +0200
Subject: [PATCH] fix backslash in filename
---
rpmrebuild_files.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rpmrebuild_files.sh b/rpmrebuild_files.sh
index 8c2f29c..3655234 100755
--- a/rpmrebuild_files.sh
+++ b/rpmrebuild_files.sh
@@ -101,7 +101,10 @@ while :; do
#[ -n "$wild" ] && file=$(echo "$file"|sed 's/\*/\\*/')
# quick and portable
case "$file" in
+ # replace * by \*
*\**) file=${file//\*/\\*} ;;
+ # replace \ by \\
+ *\\*) file=${file//\\/\\\\} ;;
*) ;;
esac
miss_str=""
--
2.46.0