Skip to content

[rsync] MSYS2 rsync prefixes target path with client's MSYS2 installation dir in server command #5123

Open
@Zsar

Description

Description / Steps to reproduce the issue

  1. install rsync 3.3.0 in MSYS2 (downloaded 2025-01-09, installed in default location C:/msys64) on Windows 11
  2. grab ssh key of a Linux server with another rsync that supports protocol version 31 (tested: rsync 3.2.7, 3.2.3)
  3. prepare a Linux client to compare with (tested: Debian 12)
  4. call in both clients: rsync --rsh='ssh -v' -r -v --delete <user>@<server>:<source path> <destination path> >log.txt 2>&1
  5. 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

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.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions