Skip to content
Snippets Groups Projects
Commit b200ce82 authored by Gerardo Pozzi's avatar Gerardo Pozzi
Browse files

Ensure correct umask for scripts


Fix for FS#58473

Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@gmail.com>
parent 5f573523
No related branches found
No related tags found
No related merge requests found
......@@ -367,6 +367,8 @@ if [[ ${EUID} -ne 0 ]]; then
_msg_error "This script must be run as root." 1
fi
umask 0022
while getopts 'p:r:C:L:P:A:D:w:o:s:c:g:vh' arg; do
case "${arg}" in
p) pkg_list="${pkg_list} ${OPTARG}" ;;
......
......@@ -12,6 +12,8 @@ out_dir=out
script_path=$(readlink -f ${0%/*})
umask 0022
# Helper function to run make_*() only one time per architecture.
run_once() {
if [[ ! -e ${work_dir}/build.${1}_${arch} ]]; then
......
......@@ -14,6 +14,8 @@ arch=$(uname -m)
verbose=""
script_path=$(readlink -f ${0%/*})
umask 0022
_usage ()
{
echo "usage ${0} [options]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment