From e6a79a5111ec1bd8eab7ce7eeb0c8791482a193d Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 18 Apr 2024 13:45:01 -0300 Subject: [PATCH] Set 'install -m xyz' on update --- libexec/portzap/portzap-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/portzap/portzap-install b/libexec/portzap/portzap-install index 234cbfa..ccdff1d 100755 --- a/libexec/portzap/portzap-install +++ b/libexec/portzap/portzap-install @@ -26,9 +26,9 @@ perform_update() target="${installdir}/${file}" parent=$(dirname "${target}") if [ ! -e "${parent}" ]; then - run_install "-d" "${parent}" + run_install "-d" "-m" "u=rwx,g=rwx,o=" "${parent}" fi - run_install "${file}" "${target}" + run_install "-m" "u=rw,g=rw,o=" "${file}" "${target}" done }