Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: realpath on macOS 10.15 (Catalina) #9296

Merged
merged 1 commit into from
May 14, 2020

Conversation

waj
Copy link
Member

@waj waj commented May 13, 2020

This makes use of the alternative symbol realpath$DARWIN_EXTSN in macOS. Apparently the original symbol (realpath) is not working on 10.15 and it's returing EONENT instead.

When using realpath in a C program the linked function is _realpath$DARWIN_EXTSN so I think we should do the same. I tried to find when was that function introduced and apparently it was around 10.5 (https://newsgroup.xnview.com/viewtopic.php?t=18491). That is, more than 10 years ago. So it's probably safe to use it for any macOS version.

Closes #8547, #8431

@waj waj added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:files platform:darwin labels May 13, 2020
@waj waj added this to the 0.35.0 milestone May 13, 2020
@waj waj linked an issue May 13, 2020 that may be closed by this pull request
Copy link
Member

@jhass jhass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So weird

@bcardiff bcardiff merged commit 7f399f0 into crystal-lang:master May 14, 2020
@waj waj deleted the fix/darwin-realpath branch May 14, 2020 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:darwin topic:stdlib:files
Projects
None yet
5 participants