diff --git a/repos/os/src/server/vfs/main.cc b/repos/os/src/server/vfs/main.cc index 944e0c3d6..998c01947 100644 --- a/repos/os/src/server/vfs/main.cc +++ b/repos/os/src/server/vfs/main.cc @@ -427,7 +427,8 @@ class Vfs_server::Session_component : public File_system::Session_rpc_object, _assert_valid_path(path_str); Vfs_server::Path fullpath(_root->path()); - fullpath.append(path_str); + if (path_str[1] != '\0') + fullpath.append(path_str); path_str = fullpath.base(); if (!create && !_vfs.directory(path_str))