News for hackers. Stuff that matters.
Re:Remote code execution, git, and OS X by jamessb on Monday April 18, 2016 @03:56PM (#11522714)
It doesn't hide anything related to git

The link between /usr/bin/git and /Application/Xcode.app/Contents/.../bin/git is hidden.

I don't know how you would discover this: ls indicates /usr/bin/git is a regular file rather than a symlink; stat -f "%i" says the two files have different inodes, so they're not hardlinked.

What is the nature of the link, and how would you find this if you didn't already know?

Re:Remote code execution, git, and OS X by joushou on Monday April 18, 2016 @04:34PM (#11522969)
man xcode-select - It's right there in the manpage.

/usr/bin/git is a "toolshim" that effectively calls "xcrun git" (it actually calls xcselect_invoke_xcrun, from /usr/lib/libxcselect.dylib, if you really want the details - this can be found by inspecting the binary). xcode-select's manpage tells you that these shims call the respective binary in the active developer directory, whereas xcrun's manpage describes its capabilities in more detail.

It took about 3 minutes to figure out.

Re:Remote code execution, git, and OS X by hobarrera on Tuesday April 19, 2016 @12:31AM (#11524888)
How did you reach that man page from the git manpage?