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