Navigation


Changeset 511:17435072de36 in freeDiameter for extensions/app_radgw


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.