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

incorrect aliasHandles produced. #2

Open
nathanday opened this issue Oct 17, 2009 · 1 comment
Open

incorrect aliasHandles produced. #2

nathanday opened this issue Oct 17, 2009 · 1 comment

Comments

@nathanday
Copy link
Owner

Both CFURLCreateWithFileSystemPath and FSPathMakeRef return noErr and also the incorrect result when they are given a file path that includes Finder Alias files. (in my test, I had a Finder Alias in /Applications/3rdPartyApps/DevApps/ where /Applications is a directory, 3rdPartyApps is a Unix symbolic link, and DevApps is a Finder Alias File. Both of the system calls resolved to an FSRef that just pointed to /Applications.

This is on OS X 10.5.8

My guess is, rather than use an entire path, you'll need to walk the entire pathComponents array, checking for alias files as you go. Since your package is all about aliases, you might want to look in to this.

@seanm
Copy link
Collaborator

seanm commented Oct 19, 2009

Does the same thing happen in 10.6?

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

No branches or pull requests

2 participants