Fix comment preservation code (thanks murf!)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2006-10-26 01:38:47 +00:00
parent 1b3411f2ff
commit b7517f1231
2 changed files with 167 additions and 12 deletions

View File

@@ -920,7 +920,7 @@ static int action_getconfig(struct mansession *s, struct message *m)
astman_send_error(s, m, "Filename not specified");
return 0;
}
if (!(cfg = ast_config_load(fn))) {
if (!(cfg = ast_config_load_with_comments(fn))) {
astman_send_error(s, m, "Config file not found");
return 0;
}
@@ -1019,7 +1019,7 @@ static int action_updateconfig(struct mansession *s, struct message *m)
astman_send_error(s, m, "Filename not specified");
return 0;
}
if (!(cfg = ast_config_load(sfn))) {
if (!(cfg = ast_config_load_with_comments(sfn))) {
astman_send_error(s, m, "Config file not found");
return 0;
}