From 67badf983bcf1a3d973910f69b1c207dc23fbd62 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 20 Apr 2019 13:24:51 +0200 Subject: [PATCH] lib/conf.c: ignore glob errors --- lib/conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/conf.c b/lib/conf.c index 6be6a425..54e54690 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -233,9 +233,10 @@ parse_files_glob(struct xbps_handle *xhp, xbps_dictionary_t seen, return ENOMEM; switch (glob(tmppath, 0, NULL, &globbuf)) { - case GLOB_ABORTED: return ENOMEM; - case GLOB_NOSPACE: return EIO; + case 0: break; + case GLOB_NOSPACE: return ENOMEM; case GLOB_NOMATCH: return 0; + default: return 0; } for (size_t i = 0; i < globbuf.gl_pathc; i++) { if (seen != NULL) {