From cd7e8c00e1108437baa4e8dfb084ed6cbb1ad419 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 21 Mar 2023 17:10:23 +0100 Subject: [PATCH] Silence fstatat errors These just keep happening, people run haunted computers. Fixes #9674. --- src/wutil.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wutil.cpp b/src/wutil.cpp index 77d3f0489..4a9c45ba4 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -167,7 +167,12 @@ void dir_iter_t::entry_t::do_stat() const { break; default: - wperror(L"fstatat"); + this->type_ = none(); + // This used to print an error, but given that we have seen + // both ENODEV (above) and ENOTCONN, + // and that the error isn't actionable and shows up while typing, + // let's not do that. + // wperror(L"fstatat"); break; } }