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: rohan a <email@hidden>
- Date: Wed, 21 Oct 2009 09:34:03 +0530
This looks good.
However, with a backup application, I would typically be using
FSIsAliasFile() to identify an alias and then use FSResolveAliasFile()
to resolve it. However,here the FSResolveAlias() file would fail
causing issues. Need to deal separately with these cases.
On Tue, Oct 20, 2009 at 10:19 PM, Jens Alfke <email@hidden> wrote:
>
> 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