Skip to content

Commit

Permalink
Print ALIST_STR, ALIST_DIR and PLUGIN_NAMES as quoted strings.
Browse files Browse the repository at this point in the history
Update config pretty printer to print certain config types as quoted
strings and not as unquoted ones. This makes things more failsafe if
we use the printed config as input for the actual config eventually.
  • Loading branch information
Marco van Wieringen authored and joergsteffens committed May 28, 2015
1 parent 7745500 commit 747dcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/res.c
Expand Up @@ -1726,7 +1726,7 @@ bool BRSRES::print_config(POOL_MEM &buff, bool hide_sensitive_data)
continue;
}
}
Mmsg(temp, "%s = %s\n", items[i].name, value);
Mmsg(temp, "%s = \"%s\"\n", items[i].name, value);
indent_config_item(cfg_str, 1, temp.c_str());
}
}
Expand Down

0 comments on commit 747dcc4

Please sign in to comment.