Files
asterisk/main
George Joseph 284bb814ac config: Fix ast_config_text_file_save2 writability check for missing files
A patch I did back in 2014 modified ast_config_text_file_save2 to check the
writability of the main file and include files before truncating and re-writing
them.  An unintended side-effect of this was that if a file doesn't exist,
the check fails and the write is aborted.

This patch causes ast_config_text_file_save2 to check the writability of the
parent directory of missing files instead of checking the file itself.  This
allows missing files to be created again.  A unit test was also added to
test_config to test saving of config files.

The regression was discovered when app_voicemail's passwordlocation=spooldir
feature stopped working.

ASTERISK-25917 #close
Reported-by: Jonathan Rose

Change-Id: Ic4dbe58c277a47b674679e49daed5fc6de349f80
2016-04-25 18:17:28 -05:00
..
2015-04-12 07:12:45 -04:00
2016-04-08 13:52:02 -05:00
2016-03-24 16:59:24 -05:00
2016-04-14 17:39:41 -05:00
2015-06-10 18:06:15 -05:00
2016-04-08 13:52:02 -05:00
2015-06-08 09:44:04 -05:00