vfs/pipe: let num_dirent return 0

This prevents the original value ~0UL from messing up the output
of 'ls -l /dev'.

Issue #3578
This commit is contained in:
Norman Feske 2019-12-04 11:33:33 +01:00 committed by Christian Helmuth
parent 9f7b8c1a17
commit 0c8ec41c21
1 changed files with 1 additions and 2 deletions

View File

@ -496,8 +496,7 @@ class Vfs_pipe::File_system : public Vfs::File_system
Rename_result rename(const char*, const char*) override {
return RENAME_ERR_NO_ENTRY; }
file_size num_dirent(char const *) override {
return ~0UL; }
file_size num_dirent(char const *) override { return 0; }
bool directory(char const *cpath) override
{