]> 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:36:04 +0000 (18:36 +0000)
commit3a261ebed45b560dcefd5d2d7f2fc625bfed6623
treeaba4123fba132b41b39ba5308ae6a67486951f05
parent3060effc92705cce985cfde0edc2bd6b0f42a573
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 4e5df9e12a23216398130d756eb264beb9a786df)
include/asterisk/config.h
main/config.c