kconfig: handle globbed files backwards
They're essentially collected on a stack before they're parsed. So we push them backwards, then parse them in the correct order. Change-Id: Ibf29559389cd19f260d67bae8e0b5ef9f4f58d91 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/10169 Tested-by: build bot (Jenkins) Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
This commit is contained in:
parent
6be1a8bf08
commit
ccbcfd79ec
|
@ -351,9 +351,14 @@ void zconf_nextfiles(const char *wildcard)
|
|||
return;
|
||||
}
|
||||
|
||||
w = g.gl_pathv;
|
||||
while (*w)
|
||||
zconf_nextfile(*w++);
|
||||
/* working through files backwards, since
|
||||
* we're first pushing them on a stack
|
||||
* before actually handling them.
|
||||
*/
|
||||
for (i = g.gl_pathc; i > 0; i--) {
|
||||
w = &g.gl_pathv[i - 1];
|
||||
zconf_nextfile(*w);
|
||||
}
|
||||
|
||||
globfree(&g);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue