Skip to content

Commit

Permalink
Add space after rsh arg formatting
Browse files Browse the repository at this point in the history
This was causing borgbackup to emit args with "create"
appended to the rsh string instead of being its own
entry after being split by shlex:

    [..., "ssh -i /mykeycreate", "--json", ...]
to -->
    [..., "ssh -i /mykey", "create", "--json", ...]
  • Loading branch information
dpbriggs committed Aug 30, 2024
1 parent abae73c commit d5c8ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl From<&CommonOptions> for String {
let mut s = String::new();

if let Some(rsh) = &value.rsh {
s = format!("{s} --rsh {}", shell_escape(rsh));
s = format!("{s} --rsh {} ", shell_escape(rsh));
}

if let Some(remote_path) = &value.remote_path {
Expand Down

0 comments on commit d5c8ff0

Please sign in to comment.