Re: Metadata support
Re: Metadata support
- Subject: Re: Metadata support
- From: maurits <email@hidden>
- Date: Tue, 4 Jul 2006 00:58:03 +0200
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:
This email sent to email@hidden