!75 [sync] PR-73: 【openEuler-22.03-LTS-SP1】revert "avoid truncate trailer space and do not escape backslash when read filename"
From: @openeuler-sync-bot Reviewed-by: @xujing99 Signed-off-by: @xujing99
This commit is contained in:
commit
3e0bc9c8ed
@ -1,48 +0,0 @@
|
|||||||
From 7b54410319d5d46e3c098237d1574c711269e90e Mon Sep 17 00:00:00 2001
|
|
||||||
From: yixiangzhike <yixiangzhike007@163.com>
|
|
||||||
Date: Mon, 22 Jul 2024 19:36:14 +0800
|
|
||||||
Subject: [PATCH] avoid truncate trailer space and do not escape
|
|
||||||
backslash when read filename
|
|
||||||
|
|
||||||
---
|
|
||||||
rpmrebuild_files.sh | 4 ++--
|
|
||||||
rpmrebuild_rpmqf.src | 2 +-
|
|
||||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/rpmrebuild_files.sh b/rpmrebuild_files.sh
|
|
||||||
index 30955c0..a7504d3 100755
|
|
||||||
--- a/rpmrebuild_files.sh
|
|
||||||
+++ b/rpmrebuild_files.sh
|
|
||||||
@@ -83,7 +83,7 @@ while :; do
|
|
||||||
read file_verify
|
|
||||||
read file_lang
|
|
||||||
read file_cap
|
|
||||||
- read file
|
|
||||||
+ read -r file
|
|
||||||
|
|
||||||
# on fedora 33, centos 7, 8, the root directory "/" is owned by filesystem package
|
|
||||||
# but for rpmrebuild, BUILDROOT is juste a symlink, not a directory (cf RpmBuild in rpmrebuild.sh)
|
|
||||||
@@ -257,6 +257,6 @@ while :; do
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
- echo "${miss_str}${lang_str}${dir_str}${fflags_str}${attr_str}${caps_str}${verify_str}\"${file}\""
|
|
||||||
+ echo "${miss_str}${lang_str}${dir_str}${fflags_str}${attr_str}${caps_str}${verify_str}${file}"
|
|
||||||
done || Critical "$MY_BASENAME done"
|
|
||||||
exit 0
|
|
||||||
diff --git a/rpmrebuild_rpmqf.src b/rpmrebuild_rpmqf.src
|
|
||||||
index 04d62ea..c646842 100755
|
|
||||||
--- a/rpmrebuild_rpmqf.src
|
|
||||||
+++ b/rpmrebuild_rpmqf.src
|
|
||||||
@@ -137,7 +137,7 @@ echo '[%{FILEMODES:perms}\
|
|
||||||
%{FILEVERIFYFLAGS:octal}\
|
|
||||||
%{FILELANGS}\
|
|
||||||
%{FILECAPS}\
|
|
||||||
-%{FILENAMES}\
|
|
||||||
+\"%{FILENAMES}\"\
|
|
||||||
]'
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: rpmrebuild
|
Name: rpmrebuild
|
||||||
Version: 2.16
|
Version: 2.16
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: A tool to build a rpm file from the rpm database
|
Summary: A tool to build a rpm file from the rpm database
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://rpmrebuild.sourceforge.net
|
URL: http://rpmrebuild.sourceforge.net
|
||||||
@ -15,7 +15,6 @@ Patch9005: fix-comment-missing-n-does-not-work.patch
|
|||||||
Patch9006: fix-r-does-not-work.patch
|
Patch9006: fix-r-does-not-work.patch
|
||||||
Patch9007: fix-errors-found-from-shellcheck-scan.patch
|
Patch9007: fix-errors-found-from-shellcheck-scan.patch
|
||||||
Patch9008: Add-macros-_binaries_in_noarch_packages_terminate_bu.patch
|
Patch9008: Add-macros-_binaries_in_noarch_packages_terminate_bu.patch
|
||||||
Patch9009: Avoid-truncate-trailer-space-and-do-not-escape-backslash-when-read-filename.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -67,6 +66,12 @@ rm -rf $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/
|
|||||||
%{_mandir}/fr/man1/*.gz
|
%{_mandir}/fr/man1/*.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 1 2024 yixiangzhike <yixiangzhike007@163.com> - 2.16-14
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:revert "avoid truncate trailer space and do not escape backslash when read filename"
|
||||||
|
|
||||||
* Thu Jul 25 2024 yixiangzhike <yixiangzhike007@163.com> - 2.16-13
|
* Thu Jul 25 2024 yixiangzhike <yixiangzhike007@163.com> - 2.16-13
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user