From 38153e34f309d84ded1d81d3558c5d93a1818606 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 10 May 2024 14:04:13 +0200 Subject: [PATCH] RemoteLinux: Fix rsync command-line construction Fixes: QTCREATORBUG-30795 Change-Id: I1311e9a9cfe9c3f6c5a4c3166a504eb27f652f9f Reviewed-by: hjk --- src/plugins/remotelinux/linuxdevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index 17044403d91..479efd48bef 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -1512,7 +1512,8 @@ private: const QString sshCmdLine = ProcessArgs::joinArgs( QStringList{SshSettings::sshFilePath().toUserOutput()} << fullConnectionOptions(), OsTypeLinux); - QStringList options{"-e", sshCmdLine, m_setup.m_rsyncFlags}; + QStringList options{"-e", sshCmdLine}; + options << ProcessArgs::splitArgs(m_setup.m_rsyncFlags, HostOsInfo::hostOs()); if (!m_batches.isEmpty()) { // NormalRun const auto batchIt = m_batches.begin();