29 lines
684 B
Diff
29 lines
684 B
Diff
From 10ef16bc38f4b3480a60fff829df09cb6b02761b Mon Sep 17 00:00:00 2001
|
|
From: licunlong1 <licunlong1@huawei.com>
|
|
Date: Wed, 9 Mar 2022 16:40:49 +0800
|
|
Subject: [PATCH] reset %defattr when users want to keep files permission, uid
|
|
and gid
|
|
|
|
---
|
|
rpmrebuild_files.sh | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/rpmrebuild_files.sh b/rpmrebuild_files.sh
|
|
index 30bd91d..f0798a8 100755
|
|
--- a/rpmrebuild_files.sh
|
|
+++ b/rpmrebuild_files.sh
|
|
@@ -69,6 +69,10 @@ if [ "X$RPMREBUILD_CAP_FROM_FS" = "Xyes" ]; then
|
|
fi
|
|
fi
|
|
|
|
+if [ "X$RPMREBUILD_PUG_FROM_FS" = "Xyes" ]; then
|
|
+ echo "%defattr(-,-,-,-)"
|
|
+fi
|
|
+
|
|
while :; do
|
|
read file_type
|
|
[ "x$file_type" = "x" ] && break
|
|
--
|
|
2.23.0
|
|
|