unpack_strategy/dmg: more UID handling fixes

Follow-up to #18040.
This commit is contained in:
Carlo Cabrera 2024-09-27 17:55:32 +08:00
parent da3b84b46a
commit 86b27eb0f3
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -56,7 +56,7 @@ module UnpackStrategy
result = loop do result = loop do
# We need to use `find` here instead of Ruby in order to properly handle # We need to use `find` here instead of Ruby in order to properly handle
# file names containing special characters, such as “e” + “´” vs. “é”. # 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 tries += 1
# Spurious bug on CI, which in most cases can be worked around by retrying. # Spurious bug on CI, which in most cases can be worked around by retrying.