Skip to content

Commit 1c959c2

Browse files
authored
Merge pull request #20630 from Homebrew/pid_path-libSystem
utils/pid_path: use libSystem
2 parents bd57ad8 + f23b848 commit 1c959c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Library/Homebrew/utils/pid_path.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
require "fiddle"
99

10-
libproc = Fiddle.dlopen("/usr/lib/libproc.dylib")
10+
# Canonically, this is a part of libproc.dylib. libproc is however just a symlink to libSystem
11+
# and some security tools seem to not support aliases from the dyld shared cache and incorrectly flag this.
12+
libproc = Fiddle.dlopen("/usr/lib/libSystem.B.dylib")
1113

1214
libproc_proc_pidpath_function = Fiddle::Function.new(
1315
libproc["proc_pidpath"],

0 commit comments

Comments
 (0)