From 53b95c62604fb902425c93aa01d68dc873067635 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" <13498015+amyspark@users.noreply.github.com> Date: Fri, 7 Sep 2018 16:57:00 +0000 Subject: [PATCH] Cask: use native chmod to set write permissions Ruby chmod follows symlinks, which can point to non-existent files. This should fix quarantining Casks e.g. disk-inventory-x. --- Library/Homebrew/cask/quarantine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/quarantine.rb b/Library/Homebrew/cask/quarantine.rb index 80749cd15c..c51702171c 100644 --- a/Library/Homebrew/cask/quarantine.rb +++ b/Library/Homebrew/cask/quarantine.rb @@ -121,7 +121,7 @@ module Cask resolved_paths = Pathname.glob(to/"**/*", File::FNM_DOTMATCH) - FileUtils.chmod "u+w", resolved_paths + system_command!("/bin/chmod", args: ["-R", "u+w", to]) quarantiner = system_command("/usr/bin/xargs", args: [