Package: rsync
Version: 3.5.0+ds1-0+deb13u1
Severity: normal
Dear maintainer,
After the upgrade from 3.4.1+ds1-5+deb13u4 to 3.5.0+ds1-0+deb13u1
(3.5.1+ds1-1 in forky is also affected), rsync stopped respecting
relative paths for --link-dest option and attempts to use the
corresponding absolute paths instead. These aren't the same.
Consider the following reproducer:
$ mkdir -p foo/bar/{baz,quux}
$ cd foo/bar/baz
$ chmod -x ../.. # foo
$ rsync --link-dest=../quux --files-from=- / . < /dev/null
It worked as intended before, but now it results in:
--link-dest arg does not exist: /tmp/foo/bar/baz/../quux
It's not a fatal error; the operation succeeds. The problem
is that it copies everything without de-duplication making
my backups much larger than before the upgrade.
At a minimum, the message is wrong (directory exists) and the
documentation is lacking. But I really hope it's not the new
intended behaviour since it's only tangentially related to the
issues the update was supposed to fix. They are irrelevant to
my use case anyway as both ends are on the same local hierarchy
and running as the same user. However, there doesn't seem to
be any kind of escape hatch like the --insecure-links available
to make rsync usable in that setup again.
-k
-- System Information:
Debian Release: 13.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.101+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages rsync depends on:
ii init-system-helpers 1.69~deb13u1
ii libacl1 2.3.2-2+b1
ii libc6 2.41-12+deb13u4
ii liblz4-1 1.10.0-4
ii libpopt0 1.19+dfsg-2
ii libssl3t64 3.5.7-1~deb13u3
ii libxxhash0 0.8.3-2
ii libzstd1 1.5.7+dfsg-1
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
rsync recommends no packages.
Versions of packages rsync suggests:
ii openssh-client 1:10.0p1-7+deb13u4
ii openssh-server 1:10.0p1-7+deb13u4
ii python3 3.13.5-1
pn python3-braceexpand <none>
-- no debconf information