Re: /usr/lib/charset.alias file identified as Alias by FSIsAliasFile(), FSResolveAliasFile() fails to get the target
Re: /usr/lib/charset.alias file identified as Alias by FSIsAliasFile(), FSResolveAliasFile() fails to get the target
- Subject: Re: /usr/lib/charset.alias file identified as Alias by FSIsAliasFile(), FSResolveAliasFile() fails to get the target
- From: Jens Alfke <email@hidden>
- Date: Tue, 20 Oct 2009 09:49:58 -0700
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.
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.)
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden