tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 171d9a28dd432f53bbd3fdb7603d28d39fb194d7
parent 6c1246589f13a4c7194ceec5744be6a60a75feb7
Author: Alexandre Lissy <lissyx+mozillians@lissyx.dyndns.org>
Date:   Thu, 11 Dec 2025 18:11:57 +0000

Bug 2005439 - Fix xattr call from mach macos-sign r=ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D275932

Diffstat:
Mtools/signing/macos/mach_commands.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/signing/macos/mach_commands.py b/tools/signing/macos/mach_commands.py @@ -332,7 +332,10 @@ def macos_sign( # non-Mach-O executables such as script files. We want to avoid # any complications that might be caused by existing extended # attributes. - xattr_cmd = ["xattr", "-cr", app] + # Bug 2005439: xattr -r is not valid on linux + xattr_cmd = ( + ["xattr", "-c", app] if sys.platform == "linux" else ["xattr", "-cr", app] + ) run(command_context, xattr_cmd, capture_output=not verbose_arg) # Remove existing signatures. The codesign command only replaces