summaryrefslogtreecommitdiff
path: root/Source/Kernel/Shell/KernelShell-fs.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Shell/KernelShell-fs.class.cpp')
-rw-r--r--Source/Kernel/Shell/KernelShell-fs.class.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Kernel/Shell/KernelShell-fs.class.cpp b/Source/Kernel/Shell/KernelShell-fs.class.cpp
index bc7e137..fa2078d 100644
--- a/Source/Kernel/Shell/KernelShell-fs.class.cpp
+++ b/Source/Kernel/Shell/KernelShell-fs.class.cpp
@@ -109,7 +109,8 @@ void KernelShell::run(Vector<String>& args) {
if (args.size() == 1) {
*m_vt << "No app to run !\n";
} else {
- Process* p = Process::run(args[1], m_cwd, 0);
+ Task::currProcess()->setCwd(m_cwd);
+ Process* p = Process::run(args[1], 0);
if (p == 0) {
*m_vt << "Error while launching process.\n";
} else {