mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 04:38:20 +00:00
committed by
Christian Helmuth
parent
4a58154e07
commit
14ca140135
@ -334,7 +334,7 @@ class Vfs::Dir_file_system : public File_system
|
|||||||
if (!path)
|
if (!path)
|
||||||
return DIRENT_ERR_INVALID_PATH;
|
return DIRENT_ERR_INVALID_PATH;
|
||||||
|
|
||||||
return _dirent_of_file_systems(path, index, out);
|
return _dirent_of_file_systems(*path ? path : "/", index, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
file_size num_dirent(char const *path) override
|
file_size num_dirent(char const *path) override
|
||||||
@ -359,7 +359,7 @@ class Vfs::Dir_file_system : public File_system
|
|||||||
* matching dirents of all our file systems. Otherwise,
|
* matching dirents of all our file systems. Otherwise,
|
||||||
* the specified path lies outside our directory node.
|
* the specified path lies outside our directory node.
|
||||||
*/
|
*/
|
||||||
return path ? _sum_dirents_of_file_systems(path) : 0;
|
return path ? _sum_dirents_of_file_systems(*path ? path : "/") : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user