[OpenSIPS-Devel] [OpenSIPS/opensips] ecea9b: 'include_file' statement: Re-introduce relative fi...

Liviu Chircu noreply at github.com
Fri Jul 12 12:26:41 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ecea9b07445d6125607cd086efc34b1dc9938669
      https://github.com/OpenSIPS/opensips/commit/ecea9b07445d6125607cd086efc34b1dc9938669
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-07-12 (Fri, 12 Jul 2019)

  Changed paths:
    M cfg_pp.c

  Log Message:
  -----------
  'include_file' statement: Re-introduce relative file paths

During the preprocessor migration, it seems the support for relative
file paths was lost.  This commit re-introduces all the lost features:

    * allow relative-path imports, e.g. include_file "cgrates.cfg".
      These file paths are considered to be relative to the .cfg file
      that is importing them

    * prioritize any relative-path imports found in the startup
      directory
      (Note: this is different from the "-w" working directory!)

    * detect infinite "include_file" loops

Many thanks to Jonathan Hulme for discovering and reporting this issue!





More information about the Devel mailing list