site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jun 27, 2006, at 12:17 PM, Dan Shoop wrote: -m -- http://www.plasticsfuture.org _______________________________________________ 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... At 0:10 Uhr -0700 2006-06-28, Jordan K. Hubbard 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(). This email sent to site_archiver@lists.apple.com
participants (1)
-
maurits