From 8145e326a39d89446932bc240edb260c3a3b9264 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 15 Aug 2025 19:57:30 +0200 Subject: [PATCH] tagcache: skip search roots that don't exist, instead of aborting https://forums.rockbox.org/index.php/topic,55459 Change-Id: I0c3fa07f9920ed4caabf3013702b10e59c0b550e --- apps/tagcache.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index a45b08a691..b1e4d13394 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -5075,7 +5075,14 @@ void do_tagcache_build(const char *path[]) { logf("Search root %s", this->path); strmemccpy(curpath, this->path, sizeof(curpath)); - ret = ret && check_dir(this->path, true); + + if (ret) + { + if (dir_exists(this->path)) + ret = check_dir(this->path, true); + else + logf("Dir not found %s", this->path); + } } free_search_roots(&roots_ll[0]);