From 1a20184ba482785949bad8068fffa304d33b97ef Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Mon, 6 Feb 2023 21:45:50 +0100 Subject: [PATCH] Silence ENODEV errors for fstatat Some broken gdrive filesystem can return these. Fixes #9550 (cherry picked from commit e90f003d2da92d6a61026cfede3e69546ad075ee) --- src/wutil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wutil.cpp b/src/wutil.cpp index b1fa99d07..bf8f5e436 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -161,6 +161,7 @@ void dir_iter_t::entry_t::do_stat() const { case ENOENT: case ENOTDIR: case ENAMETOOLONG: + case ENODEV: // These are "expected" errors. this->type_ = none(); break;