summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörgvin Ragnarsson <nifgraup@gmail.com>2013-08-20 00:42:06 +0000
committerPetr Mladek <pmladek@suse.cz>2013-08-20 15:09:50 +0000
commit4e7a358909b31005054320fa2e57aa421c16bdc3 (patch)
tree1c02fe248607ced4ba555cd9d6387aab68f527d6
parent93dc3cc8fca6c3873739da1388570e635ee87b90 (diff)
unopkg: use default umask when installing shared extensions
This makes sure shared extensions are readable by users when root's umask has been set to a value such as 0027. Change-Id: I338ceb404466c3adfd4a7bb152cd2c5912ca7e7e Reviewed-on: https://gerrit.libreoffice.org/5522 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
-rw-r--r--desktop/scripts/unopkg.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/scripts/unopkg.sh b/desktop/scripts/unopkg.sh
index d0bb4301cb24..779a13746286 100644
--- a/desktop/scripts/unopkg.sh
+++ b/desktop/scripts/unopkg.sh
@@ -61,9 +61,13 @@ do
-env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";;
-v) VERBOSE=true;;
--verbose) VERBOSE=true;;
+ --shared) SHARED=true;;
esac
done
+#make sure shared extensions will be readable by users
+[ $SHARED = true ] && umask 0022
+
# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
my_path=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS \