as of this posting, chdir(2) is now following symbolic links. As per the man page, this IS NOT what it is supposed to do. This is a recent change as of 5/13/26
As per the man page, this IS NOT what it is supposed to do.
Please post the bit of the man page that makes you think that.
Because when I search the chdir man page the only mention I see of the text sym or link is this:
[ELOOP] Too many symbolic links were encountered in
translating the pathname. This is taken to be
indicative of a looping symbolic link.
which suggests that it is intended to follow symlinks. And AFAIK this has been the case ever since symlinks were introduced.
Notably, the Posix spec has similar text and AFAIK this is standard across all Unices.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"