Changeset 18743


Ignore:
Timestamp:
2009-12-11T05:41:56+01:00 (7 years ago)
Author:
nbd
Message:

menuconfig: allow wildcard includes to return no match (#6339)

Location:
trunk/scripts/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/config/lex.zconf.c_shipped

    r6647 r18743  
    22692269 
    22702270        retval = glob(name, GLOB_ERR | GLOB_MARK, NULL, &files); 
    2271         if (retval == GLOB_NOSPACE || retval == GLOB_ABORTED || retval == GLOB_NOMATCH) { 
     2271        if (retval == GLOB_NOMATCH) 
     2272                return; 
     2273 
     2274        if (retval == GLOB_NOSPACE || retval == GLOB_ABORTED) { 
    22722275                printf("%s:%d: glob failed: %s \"%s\"\n", zconf_curname(), zconf_lineno(), 
    22732276                        retval == GLOB_NOSPACE ? "failed to allocate memory" : 
  • trunk/scripts/config/zconf.l

    r6502 r18743  
    303303 
    304304        retval = glob(name, GLOB_ERR | GLOB_MARK, NULL, &files); 
    305         if (retval == GLOB_NOSPACE || retval == GLOB_ABORTED || retval == GLOB_NOMATCH) { 
     305        if (retval == GLOB_NOMATCH) 
     306                return; 
     307 
     308        if (retval == GLOB_NOSPACE || retval == GLOB_ABORTED) { 
    306309                printf("%s:%d: glob failed: %s \"%s\"\n", zconf_curname(), zconf_lineno(), 
    307310                        retval == GLOB_NOSPACE ? "failed to allocate memory" : 
Note: See TracChangeset for help on using the changeset viewer.