From 6049dfdecf39c00046d45d3c47c43cb94ff43f0d Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 20:29:58 +0100 Subject: [PATCH] libdb: Fix binary and header file permissions Signed-off-by: Stefan Schantl --- libdb/libdb.nm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libdb/libdb.nm b/libdb/libdb.nm index ed20767cd..08d60a401 100644 --- a/libdb/libdb.nm +++ b/libdb/libdb.nm @@ -8,7 +8,7 @@ version_major = 6 version_minor = 1 version_patch = 26 version = %{version_major}.%{version_minor}.%{version_patch} -release = 3 +release = 4 thisapp = db-%{version} soversion = %{version_major}.%{version_minor} @@ -85,6 +85,14 @@ build for i in db.h db_cxx.h db_185.h; do ln -svf %{name}/${i} %{BUILDROOT}/%{includedir} done + + # Fix binary permissions. + find %{BUILDROOT}%{bindir} -type f -executable \ + -exec chmod 755 {} \; + + # Fix header permissions. + find %{BUILDROOT}%{includedir} -type f -iname "*.h" \ + -exec chmod 644 {} \; end end -- 2.47.3