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

Liviu Chircu noreply at github.com
Fri Jul 12 12:27:25 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: eceef3ec2da4f6571e4ace2134e101a3f8b9f706
      https://github.com/OpenSIPS/opensips/commit/eceef3ec2da4f6571e4ace2134e101a3f8b9f706
  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!

(cherry picked from commit ecea9b07445d6125607cd086efc34b1dc9938669)





More information about the Devel mailing list