core: do not fail if ignorable img.v/ vpick dir is missing

Do not fail if the directory is missing entirely, other than just empty

Follow-up for 00f546e25e
Follow-up for 5e79dd96a8
Follow-up for 622efc544d
This commit is contained in:
Luca Boccassi
2024-10-15 18:17:25 +02:00
committed by Lennart Poettering
parent c83818edd1
commit e1efa9d804
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -526,6 +526,8 @@ static int append_extensions(
&pick_filter_image_raw,
PICK_ARCHITECTURE|PICK_TRIES,
&result);
if (r == -ENOENT && m->ignore_enoent)
continue;
if (r < 0)
return r;
if (!result.path) {
@@ -594,6 +596,8 @@ static int append_extensions(
&pick_filter_image_dir,
PICK_ARCHITECTURE|PICK_TRIES,
&result);
if (r == -ENOENT && ignore_enoent)
continue;
if (r < 0)
return r;
if (!result.path) {