From bdc38a0068b4f456b47aaed1b672f35937bfb8d2 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Wed, 5 Mar 2014 15:05:53 +0100 Subject: [PATCH] Fix handling of / --- kernel/src/vfs/vfs.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/src/vfs/vfs.cpp b/kernel/src/vfs/vfs.cpp index 845eb3d4..80b54115 100644 --- a/kernel/src/vfs/vfs.cpp +++ b/kernel/src/vfs/vfs.cpp @@ -89,6 +89,14 @@ mounted_fs& get_fs(const std::vector& path){ size_t best = 0; size_t best_match = 0; + if(path.empty()){ + for(auto& mp : mount_point_list){ + if(mp.mp_vec.empty()){ + return mp; + } + } + } + for(size_t i = 0; i < mount_point_list.size(); ++i){ auto& mp = mount_point_list[i];