From 86b27eb0f38bee8e0faff9c8367358a2a6776b50 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:55:32 +0800 Subject: [PATCH] unpack_strategy/dmg: more UID handling fixes Follow-up to #18040. --- Library/Homebrew/unpack_strategy/dmg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/unpack_strategy/dmg.rb b/Library/Homebrew/unpack_strategy/dmg.rb index ad2fe5f3873d1..f6969fb7cfc17 100644 --- a/Library/Homebrew/unpack_strategy/dmg.rb +++ b/Library/Homebrew/unpack_strategy/dmg.rb @@ -56,7 +56,7 @@ def self.bom(pathname) result = loop do # We need to use `find` here instead of Ruby in order to properly handle # file names containing special characters, such as “e” + “´” vs. “é”. - r = system_command("find", args: [".", "-print0"], chdir: pathname, print_stderr: false) + r = system_command("find", args: [".", "-print0"], chdir: pathname, print_stderr: false, reset_uid: true) tries += 1 # Spurious bug on CI, which in most cases can be worked around by retrying.