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 Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FYa2SCFJXAugMqWwUBVzVg76WfLTldcxGSQcOzsxmnw=; b=JCae+qc4TC+/bN0tPAIgXC3fs5F2swiBWFWSwNMLUX3Y8p5j9a/1K33TPm20VdbGEo SpCYOF1B56LCgZ6FKDZ10N+GScTbzk6PKFI2O8nnv7SHru5/JkF9ruQH3uwEn+IIn3ts GHn5oMnsN7goV74pVRHUyC9MSzbIjKLeyucp4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rXD/mp2hRyAYQl46oRgUlEDZCRzTyj8DV+jfzjDO6bif8lCLlKfop58xkBMDUa5Xby x1GfvVm1bNn2L6QUiLUvoH0cNAzt13GDin1GxOiREA1sWTzW00yp6qf3gif8QIYsRzz2 lmEhMnP7cTC3shwdCrPRn2EssOXErExebUZ7s= 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 <jens@mooseyard.com> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
rohan a