From 44ebf6db6cf2725e18f0e1129f4005fd456b03dc Mon Sep 17 00:00:00 2001 From: Lena Date: Wed, 1 Jul 2026 00:00:00 +0000 Subject: app: drop --mkpath for compatibility with old remote rsyncs rsync forwards --mkpath to the remote side when sending, so a remote rsync older than 3.2.3 (notably stock macOS, whose openrsync is "rsync 2.6.9 compatible") rejects every sync with "unrecognized option '--mkpath'". rsync creates the final component of the destination path on its own, so flat remote paths keep working everywhere, including the documented rrsync setup whose root is pre-created. Only a nested remote path with missing parents now needs a one-time mkdir -p on the server; the log shows rsync's error when it is missing. Reported-by: jsvk Link: https://codeberg.org/0xlena/rsend/pulls/1 --- app/src/test/java/invalid/lena/rsend/RsyncRunnerTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/test/java') diff --git a/app/src/test/java/invalid/lena/rsend/RsyncRunnerTest.kt b/app/src/test/java/invalid/lena/rsend/RsyncRunnerTest.kt index ef7958f..8edf9fa 100644 --- a/app/src/test/java/invalid/lena/rsend/RsyncRunnerTest.kt +++ b/app/src/test/java/invalid/lena/rsend/RsyncRunnerTest.kt @@ -13,7 +13,7 @@ class RsyncRunnerTest { val a = RsyncRunner.args("RSH", remote, Folder(name = "n", local = "/a", remote = "/b")) assertEquals( listOf( - "-rt", "--partial", "--timeout=300", "--mkpath", + "-rt", "--partial", "--timeout=300", "--no-perms", "--no-owner", "--no-group", "--omit-dir-times", "-e", "RSH", "/a/", "user@host:/b/", ), -- cgit v1.2.3