-
Notifications
You must be signed in to change notification settings - Fork 22
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
mirrorring relative symlinks with ../.. in them which are wrong... #1270
Comments
user found this... |
working on #1270. The relative path conversion is actually different for rename vs. link. the rename needs to take into account where in the tree it is, but the link is always from the destination directory (where the link is.) So the processing of 'link' and 'rename' is actually different. I need more testing, I think link is correct now.
OK, what I think is going on:
|
I added some test cases to sr_insects to cover this case, and they are fixed by the proposed patch. |
Question... would it not be simpler to just chdir into the directory, and do relative ops from there... I look at the logic in do_download... and looks like it is doing a chdir... before the fileOp... so I don't understand |
After the problem with sarrac was corrected, now tests pass when all weird processing of relative rename and link passes all tests. |
so.. when mirroring with libsr3shim:
shim posting:
subscriber:
now there are paths which are /home/user/excellent (where excellent is a link into /source/excellent) so the
path of operations would be:
you end up with links with (wrong) extra ../../ in them.
also rename... maybe same issue maybe different.
The text was updated successfully, but these errors were encountered: