Silence fstatat errors

These just keep happening, people run haunted computers.

Fixes #9674.

(cherry picked from commit cd7e8c00e1)
This commit is contained in:
Fabian Boehm 2023-03-21 17:10:23 +01:00
parent a1f79b3acc
commit 693595a6c0

View File

@ -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;
}
}