Unverified Commit dd6349a4 authored by boklm's avatar boklm
Browse files

Bug 21779: Non-admin users can't access Tor Browser on macOS.

Use chmod to grant permission for "other" to access files within
TorBrowser.app.

tor-browser-bundle.git author: Kathy Brade <brade@pearlcrescent.com>
tor-browser-bundle.git commit: f27d2cab4ed80a4c7b4f594b593b6b90f6148a82
parent a826868c
......@@ -229,6 +229,12 @@ rm -f precomplete
python $MARTOOLS/createprecomplete.py
popd
[% IF c("var/osx") -%]
# Ensure that files and directories are accessible by non-admin users
# if the app bundle is placed in /Applications. See bug 21779.
chmod -R o+rX "$TBDIR"
[% END -%]
cd $distdir
[% IF c("var/build_mar") -%]
......@@ -301,6 +307,12 @@ rm -rf $distdir/${PKG_DIR}
python $MARTOOLS/createprecomplete.py
popd
[% IF c("var/osx") -%]
# Ensure that files and directories are accessible by non-admin users
# if the app bundle is placed in /Applications. See bug 21779.
chmod -R o+rX "[% browserdir %]"
[% END -%]
# Create full MAR file and compressed package for this locale.
MAR_FILE=tor-browser-[% c("var/mar_osname") %]-[% c("var/torbrowser_version") %]_[% lang %].mar
MAR=$MARTOOLS/mar MBSDIFF=$MARTOOLS/mbsdiff $MARTOOLS/make_full_update.sh -q $OUTDIR/$MAR_FILE "[% browserdir %]"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment