Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PATCH: config.c: problems with #tryinclude statements, whitespace (#48)
Pull in Asterisk pull requests for the following issues : 1. asterisk/asterisk#920 asterisk/asterisk#918 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 patch resolves these problems. 2. asterisk/asterisk#970 asterisk/asterisk#971 Configurations loaded with the ast_config_load2() API and later written out with ast_config_text_file_save2() will have any leading whitespace stripped away. The APIs should make reasonable efforts to maintain the content and formatting of the configuration files.
- Loading branch information