[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - desktop/scripts

Björgvin Ragnarsson nifgraup at gmail.com
Tue Aug 20 08:10:13 PDT 2013


 desktop/scripts/unopkg.sh |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4e7a358909b31005054320fa2e57aa421c16bdc3
Author: Björgvin Ragnarsson <nifgraup at gmail.com>
Date:   Tue Aug 20 00:42:06 2013 +0000

    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 at suse.cz>
    Tested-by: Petr Mladek <pmladek at suse.cz>

diff --git a/desktop/scripts/unopkg.sh b/desktop/scripts/unopkg.sh
index d0bb430..779a137 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 \


More information about the Libreoffice-commits mailing list