From f020fe2ac518af7ddd90eea6fd74d7049067adf6 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 13 Jul 2017 08:09:36 -0700 Subject: [PATCH] Pass relative, not canonicalized, path to script --- src/syscall/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscall/process.rs b/src/syscall/process.rs index b33d033..9216c20 100644 --- a/src/syscall/process.rs +++ b/src/syscall/process.rs @@ -590,7 +590,7 @@ pub fn exec(path: &[u8], arg_ptrs: &[[usize; 2]]) -> Result { if ! args.is_empty() { args.remove(0); } - args.insert(0, canonical); + args.insert(0, path.to_vec()); args.insert(0, line.to_vec()); canonical = { let contexts = context::contexts();