Re: /usr/lib/charset.alias file identified as Alias by FSIsAliasFile(), FSResolveAliasFile() fails to get the target
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 20, 2009, at 5:30 AM, rohan a wrote: I created a file 1.alias (regular file) and surprisingly FSIsAliasFile() has recognized it as an alias file. This is such strange behavior. —Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Why? Our modern OS uses filename suffixes to determine content types, not antiquated things like filesystem metadata. If you created an empty file "foobar.jpg" it would be interpreted as an JPEG file and open with Preview. (All sarcasm aside, there is an "is alias" bit in HFS, but I think the Alias Manager isn't relying on it because it can be lost if transferring files across foreign filesystems. Aliases don't have their own HFS filetype code because they need to use the filetype and creator of the original file.) This email sent to site_archiver@lists.apple.com
participants (1)
-
Jens Alfke