Closed petersilva closed 1 month ago
user found this...
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... then no adjustment would be needed. hmm.
I look at the logic in do_download... and looks like it is doing a chdir... before the fileOp... so I don't understand why the relative path adjustment is needed at all. but if I remove if for renames, my test cases break.
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.