You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Push and pull into a destination below another user's symlink: oc prints its own error instead of change_dir#2/#3 and creates the new directory in that user's tree before refusing #8870
On push and pull, when the destination path passes through a symlink owned by another user, the oc receiver refuses with exit 3 as rsync 3.5.2 does, but:
it prints its own failed to access destination directory ... line instead of 3.5.2's change_dir#2 / change_dir#3 line;
when the run has to create the destination directory, it first creates that directory inside the other user's tree (3.5.2 does the same), then refuses.
The local-copy case is fixed in #8858. The push-side line text and order for an existing destination are #8863.
Measured
Fixture: B/dest/sub is a symlink to B/outside, owned by uid 65534 (chown -h). oc is the #8858 fix build on both ends of a local remote-shell shim; 3.5.2 is the release build.
Pull, single file (host:B/src/f B/dest/sub/g), exit 3 in both, nothing written outside:
lines after the refusal line
3.5.2
rsync: [Receiver] change_dir#3 "B/dest/sub" failed: Too many levels of symbolic links (40); code-3 trailer [Receiver=3.5.2]; rsync error: received SIGUSR1 (code 19) ... [sender=3.5.2]
oc
failed to access destination directory 'B/dest/sub': Too many levels of symbolic links (os error 40); code-3 trailer; no change_dir#3 line, no sender SIGUSR1 line
Pull, created directory (-r host:B/src/d/ B/dest/sub/new/), exit 3 in both:
server error: failed to access destination directory 'B/dest/sub/new/': ... (code 3) ... [server=...] first, then the refusal
yes
Upstream
get_local_name (main.c): do_mkdir is a plain mkdir(dest_path) that follows symlinks (syscall.c), then change_dir(dest_path, CD_NORMAL) refuses at change_dir#2; for a single file, change_dir#3 on the parent. The network receiver reaches the same code.
Target
Print 3.5.2's change_dir#2 / change_dir#3 lines, role tag and trailer, including the sender's SIGUSR1 line on a pull.
Activity
fix: enter a local copy's destination like change_dir does (#8890)