Re: rsync ACLs and unix permissions (with/without rsrc)
Re: rsync ACLs and unix permissions (with/without rsrc)
- Subject: Re: rsync ACLs and unix permissions (with/without rsrc)
- From: Giuliano Gavazzi <email@hidden>
- Date: Fri, 29 Dec 2006 04:04:29 +0100
On 25 Dec 2006, at 02:51, Corey O'Connor wrote:
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.
Giuliano
_______________________________________________
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