- Create TMPDIR only if it doesn't exist yet
- Set the installer to use our permissions, not influenced by the umask.
diff --git a/Mac/OSX/Dist/build b/Mac/OSX/Dist/build
index c830eae..9c77e7c 100755
--- a/Mac/OSX/Dist/build
+++ b/Mac/OSX/Dist/build
@@ -48,7 +48,9 @@
mkdir -p $BUILDROOT
fi
rm -rf $DMGDIR
-mkdir $TMPDIR
+if [ ! -e $TMPDIR ]; then
+ mkdir $TMPDIR
+fi
chgrp admin $TMPDIR
mkdir -p $DMGDIR/root
@@ -118,6 +120,7 @@
--NeedsAuthorization="YES" \
--Relocatable="NO" \
--InstallOnly="YES" \
+ --UseUserMask="NO" \
$INSTALLROOT \
$RESOURCEDIR