mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user