diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-12-22 19:50:54 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-12-22 19:50:54 +0000 |
commit | 79f0aaa85e8c9a1017add9b7d0d386da07a5a088 (patch) | |
tree | b276350e6ab98f32b9eeca7fd605cf1cd62f4e69 /subr | |
parent | 71818e6b2f6c02d7c5d78633952a71055efd7740 (diff) | |
download | midipix_build-79f0aaa85e8c9a1017add9b7d0d386da07a5a088.tar.bz2 midipix_build-79f0aaa85e8c9a1017add9b7d0d386da07a5a088.tar.xz |
subr/pkg_install.subr: force directory and non-executable/executable file permissions bits {0700,0600,0700}, resp.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/pkg_install.subr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 81c67d21..fda38e5a 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -4,6 +4,14 @@ pkg_install() { ex_rtl_fileop mkdir "${PKG_PREFIX}"; + find "${PKG_DESTDIR}" \ + -type d -exec chmod 0700 {} \;; + find "${PKG_DESTDIR}" \ + \( -perm -0400 \) -and \ + \( -not -perm /0100 \) \ + -type f -exec chmod 0600 {} \;; + find "${PKG_DESTDIR}" \ + -perm /0100 -type f -exec chmod 0700 {} \;; tar -C "${PKG_DESTDIR}" -cpf - . |\ tar -C "${PKG_PREFIX}" --overwrite -xpf -; if [ "${ARG_PACKAGE:-0}" -eq 1 ]; then |