Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Metadata support



At 0:10 Uhr -0700 2006-06-28, Jordan K. Hubbard wrote:
On Jun 27, 2006, at 12:17 PM, Dan Shoop wrote:

- rsync -aE doesn't preserve BSD flags, locked flag, modification date of files with resource forks, ACLs (I'm sure there's gazillions of rdars)

It also doesn't appear to be able to copy files with both ACLs and resource forks. It appears to only work if you have one or the other. At least that was the last time I checked.

That's not true. rsync copies all EAs, of which ACLs are simply examples of.

I haven't studied copyfile.c for hours, but the limited attention I've given it tells me that ACLs do indeed receive some special addition, they're not merely blindly copied just like other EAs. For copying files directly, copyfile_security() actually loops over the ACEs in an ACL and only copies noninherited ones. When archiving in AppleDouble files (this is the path used by rsync I think), ACLs are packed in copyfile_pack_acl(). Also when unpacking the AppleDouble files, ACLs get extra treatment. So it's not entirely unplausible to me that there's still bugs lurking in copyfile().


-m
--
http://www.plasticsfuture.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.