]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
sudo: Fix library permissions
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 20 Mar 2023 10:31:49 +0000 (11:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:40 +0000 (18:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
sudo/sudo.nm

index 6c46eb1ac114ade99bd540a86c14bab379cff24d..55e4d42e196dd83a11de2fe53af2d7cccc2b3802 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = sudo
 version    = 1.9.12p1
-release    = 2
+release    = 3
 
 groups     = Applications/System
 url        = https://www.sudo.ws/
@@ -60,11 +60,16 @@ build
        end
 
        install_cmds
+               # Create sudoers config file.
                mkdir -pv %{BUILDROOT}%{sysconfdir}
                cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
 
-               # Do not ship /run
+               # Do not ship /run.
                rm -rvf %{BUILDROOT}/run
+
+               # Fix library permissions.
+               find %{BUILDROOT}%{libdir}/%{name} -type f -iname "*.so" -exec chmod 755 {} \;
+
        end
 end