projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scripts/config: make wildcard include with no results non-fatal
[openwrt/staging/wigyori.git]
/
scripts
/
config
/
zconf.l
diff --git
a/scripts/config/zconf.l
b/scripts/config/zconf.l
index bce3da66531e35c4ab6a7eefd11935835b9321dd..3aef45983aa1f1cc979ad2298ac7de0492cb1dfd 100644
(file)
--- a/
scripts/config/zconf.l
+++ b/
scripts/config/zconf.l
@@
-345,6
+345,13
@@
void zconf_nextfile(const char *name)
int i;
err = glob(name, GLOB_ERR | GLOB_MARK, NULL, &gl);
+
+ /* ignore wildcard patterns that return no result */
+ if (err == GLOB_NOMATCH && strchr(name, '*')) {
+ err = 0;
+ gl.gl_pathc = 0;
+ }
+
if (err) {
const char *reason = "unknown error";