From bfaa564afdd1628c77a1bdef9032d49bdac99829 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Wed, 28 Sep 2016 11:52:29 -0600 Subject: [PATCH] Fix CWD without trainling slash --- context/context.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/context/context.rs b/context/context.rs index a2ab64b9..92979409 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 } -- GitLab