From 8ec48b0c72c24c90c7deee594264591feb808549 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" <13498015+amyspark@users.noreply.github.com> Date: Sun, 6 Oct 2019 23:27:24 +0000 Subject: [PATCH] Fix symlink validation in Mojave --- 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 085eec6176..a792255ecc 100644 --- a/Library/Homebrew/unpack_strategy/dmg.rb +++ b/Library/Homebrew/unpack_strategy/dmg.rb @@ -29,7 +29,7 @@ module UnpackStrategy # symlinks to system directories (commonly to /Applications) def system_dir_symlink? - symlink? && MacOS.system_dir?(readlink) + symlink? && MacOS.system_dir?(realpath) end def bom