From 0c8ec41c21ed76a4308d39bc230f5c94dbc7662f Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 4 Dec 2019 11:33:33 +0100 Subject: [PATCH] vfs/pipe: let num_dirent return 0 This prevents the original value ~0UL from messing up the output of 'ls -l /dev'. Issue #3578 --- repos/gems/src/lib/vfs/pipe/plugin.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repos/gems/src/lib/vfs/pipe/plugin.cc b/repos/gems/src/lib/vfs/pipe/plugin.cc index bf880f53af..310198486d 100644 --- a/repos/gems/src/lib/vfs/pipe/plugin.cc +++ b/repos/gems/src/lib/vfs/pipe/plugin.cc @@ -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 {