Navigation


Changeset 511:17435072de36 in freeDiameter


Ignore:
Timestamp:
Aug 20, 2010, 3:18:58 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Search extensions conf files in the main configuration folder also

Location:
extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap.y

    r425 r511  
    134134                        if ((fl == NULL) && (*cfile != '/')) {
    135135                                char * tmp = cfile;
    136                                 CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_EXTENSIONS_PATH) + 2 ),
     136                                CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_CONF_PATH) + 2 ),
    137137                                        { yyerror (&yylloc, config, "Not enough memory"); YYERROR; } );
    138                                 sprintf(cfile, DEFAULT_EXTENSIONS_PATH "/%s", tmp);
     138                                sprintf(cfile, DEFAULT_CONF_PATH "/%s", tmp);
    139139                                free(tmp);
    140140                                fl = fopen(cfile, "r");
  • extensions/app_radgw/rgwx_echodrop.y

    r403 r511  
    6969       
    7070        rgwx_echodropin = fopen(conffile, "r");
     71        if ((rgwx_echodropin == NULL) && (*conffile != '/')) { /* We received a relative path, try adding DEFAULT_CONF_PATH prefix */
     72                char * fullpath;
     73                CHECK_MALLOC( fullpath = malloc( strlen(conffile) + strlen(DEFAULT_CONF_PATH) + 2 ) );
     74                sprintf( fullpath, DEFAULT_CONF_PATH "/%s", conffile );
     75                rgwx_echodropin = fopen(fullpath, "r");
     76                free(fullpath);
     77        }
    7178        if (rgwx_echodropin == NULL) {
    7279                ret = errno;
Note: See TracChangeset for help on using the changeset viewer.