diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-24 15:08:34 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-24 15:08:34 +0100 |
commit | d3722382bdd467d1c705911450120be75426406f (patch) | |
tree | f0733e9feb9e82263444b68e0c624a56d4593454 /file.c | |
parent | bddae56baca18d81394526ae17c09bc747ae9fda (diff) | |
download | uci-d3722382bdd467d1c705911450120be75426406f.tar.gz |
Do quote section names to keep the same style as option values
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -566,7 +566,7 @@ static void uci_export_package(struct uci_package *p, FILE *stream, bool header) struct uci_section *sec = uci_to_section(s); fprintf(stream, "\nconfig %s", uci_escape(ctx, sec->type)); if (!sec->anonymous || (ctx->flags & UCI_FLAG_EXPORT_NAME)) - fprintf(stream, " %s", uci_escape(ctx, sec->e.name)); + fprintf(stream, " '%s'", uci_escape(ctx, sec->e.name)); fprintf(stream, "\n"); uci_foreach_element(&sec->options, o) { struct uci_option *opt = uci_to_option(o); |