29 lines
676 B
Diff
29 lines
676 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 6d0db46..fd1c75a 100755
|
|
--- a/rpmrebuild_files.sh
|
|
+++ b/rpmrebuild_files.sh
|
|
@@ -69,6 +69,10 @@ if [ "$RPMREBUILD_CAP_FROM_FS" = "yes" ]; then
|
|
fi
|
|
fi
|
|
|
|
+if [ "$RPMREBUILD_PUG_FROM_FS" = "yes" ]; then
|
|
+ echo "%defattr(-,-,-,-)"
|
|
+fi
|
|
+
|
|
while :; do
|
|
read file_type
|
|
[ -z "$file_type" ] && break
|
|
--
|
|
2.33.0
|
|
|