]> 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:56 +0000 (16:12 +0000)
commit7e58e8d4f6cf550d58c0ce6cdbafc8e54ff6bf5b
tree86c39308281da600587ebb3b6998af5852a0c107
parentabfa8206f383665621b0c0cc1c102020e6cd3c6d
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