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 for00f546e25eFollow-up for5e79dd96a8Follow-up for622efc544d
This commit is contained in:
committed by
Lennart Poettering
parent
c83818edd1
commit
e1efa9d804
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user