feat: add --fastsync-server-path flag to configure remote server binary path #144

Merged
TapTap merged 1 commits from fastsync-server-path-flag into main 2026-07-21 18:17:36 +02:00
Owner

Adds a --fastsync-server-path flag to specify the path/name of the fastsync-server binary on the remote machine, so it does not need to be in the remote user's $PATH.

Changes:

  • config.h: Added char* fastsync_server_path field to Config struct
  • config.c: Initialize to NULL, free in config_delete()
  • transport_ssh.h: Added server_path param to client_connect_ssh()
  • transport_ssh.c: Use configured path, fall back to "fastsync-server"
  • client_cli.c: Parse --fastsync-server-path flag, show in help
  • client_send.c: Pass fastsync_server_path to client_connect_ssh()
  • tests/test_transport_ssh.c: Pass NULL for new param

Usage:

fastsync --fastsync-server-path ~/bin/fastsync-server user@host:/remote/path /local/source

If not specified, defaults to fastsync-server (current behavior).

Adds a `--fastsync-server-path` flag to specify the path/name of the `fastsync-server` binary on the remote machine, so it does not need to be in the remote user's $PATH. ### Changes: - **config.h**: Added `char* fastsync_server_path` field to `Config` struct - **config.c**: Initialize to NULL, free in `config_delete()` - **transport_ssh.h**: Added `server_path` param to `client_connect_ssh()` - **transport_ssh.c**: Use configured path, fall back to `"fastsync-server"` - **client_cli.c**: Parse `--fastsync-server-path` flag, show in help - **client_send.c**: Pass `fastsync_server_path` to `client_connect_ssh()` - **tests/test_transport_ssh.c**: Pass NULL for new param ### Usage: ``` fastsync --fastsync-server-path ~/bin/fastsync-server user@host:/remote/path /local/source ``` If not specified, defaults to `fastsync-server` (current behavior).
TapTap force-pushed fastsync-server-path-flag from 9443db8db8 to 7a4def8411 2026-07-21 18:13:20 +02:00 Compare
TapTap added 1 commit 2026-07-21 18:13:23 +02:00
feat: add --fastsync-server-path flag to configure remote server binary path
CI / lint (pull_request) Successful in 10s
CI / sanitizers (address) (pull_request) Successful in 14s
CI / sanitizers (undefined) (pull_request) Successful in 16s
CI / fuzz-build (pull_request) Successful in 15s
CI / coverage (pull_request) Successful in 9s
CI / valgrind (pull_request) Successful in 12s
CI / build-and-test (pull_request) Successful in 54s
30239c6f50
TapTap force-pushed fastsync-server-path-flag from 7a4def8411 to 30239c6f50 2026-07-21 18:13:23 +02:00 Compare
TapTap merged commit c6bf7bb84e into main 2026-07-21 18:17:36 +02:00
TapTap deleted branch fastsync-server-path-flag 2026-07-21 18:17:39 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TapTap/FastSync#144