mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Fix rsync module.
How did that happen?
This commit is contained in:
@ -42,6 +42,7 @@ impl Command {
|
|||||||
if !destination.ends_with("/") {
|
if !destination.ends_with("/") {
|
||||||
destination.push('/')
|
destination.push('/')
|
||||||
}
|
}
|
||||||
|
let mut cmd = process::Command::new("rsync");
|
||||||
cmd.arg("-az")
|
cmd.arg("-az")
|
||||||
.arg("--delete");
|
.arg("--delete");
|
||||||
if self.has_contimeout {
|
if self.has_contimeout {
|
||||||
@ -153,7 +154,7 @@ impl Uri {
|
|||||||
pub fn join(&self, path: &[u8]) -> Self {
|
pub fn join(&self, path: &[u8]) -> Self {
|
||||||
assert!(is_uri_ascii(path));
|
assert!(is_uri_ascii(path));
|
||||||
let mut res = self.clone();
|
let mut res = self.clone();
|
||||||
if !res.path.ends_with(b"/") {
|
if !res.path.is_empty() && !res.path.ends_with(b"/") {
|
||||||
res.path.to_mut().extend_from_slice(b"/");
|
res.path.to_mut().extend_from_slice(b"/");
|
||||||
}
|
}
|
||||||
res.path.to_mut().extend_from_slice(path);
|
res.path.to_mut().extend_from_slice(path);
|
||||||
|
Reference in New Issue
Block a user