diff --git a/context/context.rs b/context/context.rs index a2ab64b9ff556fe887d8d32a2b1d768edc8d33be..92979409f3abc71a482a0cd71e2632e597dcb51f 100644 --- a/context/context.rs +++ b/context/context.rs @@ -96,6 +96,9 @@ impl Context { canon } else { let mut canon = cwd.clone(); + if ! canon.ends_with(b"/") { + canon.push(b'/'); + } canon.extend_from_slice(&path); canon }