-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsync >= 3.2.4 quotes arguments itself, making unison fail when it quotes arguments #865
Comments
(On reflection this issue must surely have been reported already, as rsync 3.2.4 was released nearly a year ago; but I have searched closed issues and can't find a similar one! I also did a quick scan of the git commit messages, where rsync is hardly ever mentioned.) |
More importantly, bugs in rsync are not bugs in unison!! |
@gdt, as far as I can tell, this is a deliberate change to rsync, not a bug. (It is also being backported to earlier versions of rsync in security updates to e.g. Ubuntu. See https://bugs.launchpad.net/ubuntu/+source/rsync/+bug/2009706 ) Which is the right repo to file this issue in? It's is a problem with unison, and this seems to be the repo for unison. |
If it's a unison issue, please make it clear what is wrong in unison, and which version of unison you find the bug in, and a reproduction recipe. My system has rsync 3.2.7 and I have seen no problems. I don't claim there are none -- but it's necessary to explain what the problem is. |
Sure thing, sorry @gdt! Version info:
Unison setup:
First try with default options fails:
Second try with
|
Looking at https://repology.org/project/rsync/versions (a summary can be seen at https://repology.org/project/rsync/badges ), it seems to me that the easiest course of action is to make |
I have implemented a more general solution to this problem in #866, which obviates the need for |
I wonder if we have unison check the rsync version (once, when rsync is first used) and do the right thing. rsync from a year ago is going to be present on some fraction of unison installs, and certainly many will have it and many will not. |
Not worth it. This issue will only bite those users who make an active choice to use external |
You only have to set |
Fair enough. But on that note, I think copyprog should be used for very special tricks only. Using it plainly for copying (via I haven't checked this but my feeling is that normal users should always steer clear of external copyprogs and all these preferences should be moved into the "Expert" category. I'd be happy if someone had real hard data to base this decision on (one way or another then). |
I've been using Unison for over 20 years, and I don't think I changed
I agree things should be that way, though I feel that really only rsync should be used, perhaps with special options. I guess Unison makes a lot of assumptions about the properties of a copy program and what it does. |
Is there any recent data that shows that this complexity is worth it, vs a null hypothesis that we should just rip out the code for the entire concept? |
I just did a lot of searching online and in my mail archive, but without the old mailing list (which sadly I didn't keep all of), I feel hobbled, and I can't find anything explicit about why rsync might be faster than Unison for large files; only plenty of evidence that that's what people use it for. I presume someone on unison-hackers will know. (I just tried subscribing but I get an error about needing to provide a valid email address; I have written to the list owner.) Why not remove Unison's internal copying, and just use rsync, replacing |
This is turning into a disucssion that belongs on hackers rather than a bug. I will follow up there. |
I'll be there as soon as my subscription is unblocked! |
Fixed by merge of #866 |
See the discussion of
--old-args
inrsync(1)
for how to handle this; also:Or
copyquoterem
's default could be made to depend on the rsync version.The text was updated successfully, but these errors were encountered: