[rsync] MSYS2 rsync prefixes target path with client's MSYS2 installation dir in server command #5123
Open
Description
Description / Steps to reproduce the issue
- install rsync 3.3.0 in MSYS2 (downloaded 2025-01-09, installed in default location C:/msys64) on Windows 11
- grab ssh key of a Linux server with another rsync that supports protocol version 31 (tested: rsync 3.2.7, 3.2.3)
- prepare a Linux client to compare with (tested: Debian 12)
- call in both clients:
rsync --rsh='ssh -v' -r -v --delete <user>@<server>:<source path> <destination path> >log.txt 2>&1
- server command sent from Linux client (succeeds):
rsync --server --sender -vre.iLsfxCIvu . <source path>
server command sent from Windows client (fails with code 12):rsync --server --sender -vre.iLsfxCIvu . C:/msys64/<source path>
Expected behavior
The source path should not be altered.
Actual behavior
The source path is prefixed with a directory that will generally not contain the relevant data, even if it exists.
(Actual data even on Windows would not be put into C:/msys64
but e.g. into C:/Users/<user>/Documents
.)
Verification
- I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)
Windows Version
MINGW64_NT-10.0-26100
Are you willing to submit a PR?
Maybe? Should be easy to fix, but I have not checked.