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

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


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

New commits:
commit 7da77a339c82d7a43b9054a7faf0f6e7bf7bd427
Author: Björgvin Ragnarsson <nifgraup at gmail.com>
Date:   Tue Aug 20 00:46:13 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: Ia1e389e1e6a271d78bd9fe90df345134befaaac0
    Reviewed-on: https://gerrit.libreoffice.org/5523
    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