]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: fix #tryinclude being converted to #include on rewrite
authorAllan Nathanson <42244061+Allan-N@users.noreply.github.com>
Mon, 16 Sep 2024 18:58:59 +0000 (14:58 -0400)
committerAllan Nathanson <42244061+Allan-N@users.noreply.github.com>
Thu, 16 Jan 2025 16:12:53 +0000 (16:12 +0000)
commit4e5df9e12a23216398130d756eb264beb9a786df
treec1fc211527bb3c7c07ae03e5496bbe6f2b2a17ca
parent198300c570f168823198191c67d2b44c6cd90ccf
config.c: fix #tryinclude being converted to #include on rewrite

Correct an issue in ast_config_text_file_save2() when updating configuration
files with "#tryinclude" statements. The API currently replaces "#tryinclude"
with "#include". The API also creates empty template files if the referenced
files do not exist. This change resolves these problems.

Resolves: https://github.com/asterisk/asterisk/issues/920
include/asterisk/config.h
main/config.c