lib/conf.c: ignore glob errors
This commit is contained in:
parent
79317563e9
commit
67badf983b
@ -233,9 +233,10 @@ parse_files_glob(struct xbps_handle *xhp, xbps_dictionary_t seen,
|
|||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
|
|
||||||
switch (glob(tmppath, 0, NULL, &globbuf)) {
|
switch (glob(tmppath, 0, NULL, &globbuf)) {
|
||||||
case GLOB_ABORTED: return ENOMEM;
|
case 0: break;
|
||||||
case GLOB_NOSPACE: return EIO;
|
case GLOB_NOSPACE: return ENOMEM;
|
||||||
case GLOB_NOMATCH: return 0;
|
case GLOB_NOMATCH: return 0;
|
||||||
|
default: return 0;
|
||||||
}
|
}
|
||||||
for (size_t i = 0; i < globbuf.gl_pathc; i++) {
|
for (size_t i = 0; i < globbuf.gl_pathc; i++) {
|
||||||
if (seen != NULL) {
|
if (seen != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user