summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2014-09-10 16:07:04 +0000
committerGeorge Joseph <george.joseph@fairview5.com>2014-09-10 16:07:04 +0000
commit93894d53c469c0703d7226c5fa7cc5d2f973dc97 (patch)
treeb1b3a07e3c7fc5131dbcb1f6d738b52c16f5a040 /formats
parent7bd3287a110f65a0e615a3815039cf0714688fc9 (diff)
config: bug: fix truncation of included config files on permissions error
ast_config_text_file_save() currently truncates include files as they are processed. If a subsequent include file or the main config file has a permissions error that prevents writing, earlier include files are left truncated resulting in a frantic search for backups. This patch causes ast_config_text_file_save to check for write access on all files before it truncates any of them. Will be applied 1.8 > trunk. Tested by: George Joseph Review: https://reviewboard.asterisk.org/r/3986/ ........ Merged revisions 422900 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 422903 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 422904 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 422905 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats')
0 files changed, 0 insertions, 0 deletions