]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:42:28 +0000 (18:42 +0000)
commit0fabaa5af4db91b91d696f640ad34c03b19167b0
tree7deedb97d09fb110b1f6cb175b09605cde0abc4a
parentbef2dd5ce6806ee0d93fd317ac1b3bb7a055c51f
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
(cherry picked from commit 7e58e8d4f6cf550d58c0ce6cdbafc8e54ff6bf5b)
include/asterisk/config.h
main/config.c