]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Thu, 16 Jan 2025 16:12:59 +0000 (16:12 +0000)
commit217e6962887fe303b4d538942e59499e54e1e0cd
tree4b4bc7e72ce05b9eee9876692e7a95e5c1847038
parent78546868f9a01c498e0c3cf4db42dbe819a346bc
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