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

28 lines
694 B
Diff
Raw Normal View History

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 c44eadc..4f42b44 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 "x$file" in
+ # replace * by \*
x*\**) file=${file//\*/\\*} ;;
+ # replace \ by \\
+ x*\\*) file=${file//\\/\\\\} ;;
x*) ;;
esac
miss_str=""
--
2.46.0