rpmrebuild/backport-fix-backslash-in-filename.patch
dongyuzhen 55f36a3bd5 backport some patches from upstream
(cherry picked from commit 68dbac9129a10702702016d5bdde7f0ec041e6df)
2024-12-10 11:34:15 +08:00

28 lines
694 B
Diff

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