Skip to content

FileManager: Fix fileExists(atPath:isDirectory:) with dangling symlink #1514

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

Merged
merged 1 commit into from
Apr 14, 2018

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Apr 14, 2018

  • When the path item is a symlink and the target of the symlink does
    not exist, return false instead of true.

  • Combine the calls to stat() when the file is a symlink.

Issue found whilst testing #1510

- When the path item is a symlink and the target of the symlink does
  not exist, return false instead of true.

- Combine the calls to stat() when the file is a symlink.
@spevans
Copy link
Contributor Author

spevans commented Apr 14, 2018

@swift-ci please test

@parkera parkera merged commit 366a366 into swiftlang:master Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants