mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
parent
e3005266b6
commit
b2f7a6a934
@ -1748,8 +1748,11 @@ class Vfs::Lxip_file_system : public Vfs::File_system,
|
||||
return node ? dynamic_cast<Vfs::Directory *>(node) : 0;
|
||||
}
|
||||
|
||||
char const *leaf_path(char const *path) override {
|
||||
return path; }
|
||||
char const *leaf_path(char const *path) override
|
||||
{
|
||||
Vfs::Node *node = _lookup(path);
|
||||
return node ? path : nullptr;
|
||||
}
|
||||
|
||||
Vfs::Directory_service::Open_result
|
||||
open(char const *path, unsigned mode,
|
||||
|
@ -223,6 +223,9 @@ struct Vfs::Directory_service : Interface
|
||||
|
||||
virtual bool directory(char const *path) = 0;
|
||||
|
||||
/**
|
||||
* Return leaf path or nullptr if the path does not exist
|
||||
*/
|
||||
virtual char const *leaf_path(char const *path) = 0;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user