site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 25 Dec 2006, at 02:51, Corey O'Connor wrote: Giuliano _______________________________________________ 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... I've never had any luck with the rsync that comes with 10.4. I use the rsync build from here: http://www.onthenet.com.au/~q/rsync/ Which has worked fine in my limited testing. You might have better luck with it. -Corey Thanks Corey, I will have a look at that build sooner or later. For the moment I found a solution, with a small change to rsync.c in rsync-24: diff rsync.c.orig rsync.c 197a198,209
if (!strncmp("._", file->basename, 2)) {
STRUCT_STAT st;
char buf[MAXPATHLEN];
pathjoin(buf, sizeof buf, file->dirname, (file- basename)+2);
if (stat(buf, &st) == 0) {
if (do_chmod(fname,(st.st_mode &
CHMOD_BITS)) != 0) {
rsyserr(FERROR, errno, "failed to
set permissions on %s",
full_fname(fname));
return 0;
}
}
}
this just works by calling stat on the already transferred data fork and then applying its permissions to the temporary copy of the ACL ._ file. A kludge, but it seems to work. I wonder though were it is written that ._* file are not transferred by rsync, at least in Apple's version. This email sent to site_archiver@lists.apple.com