summaryrefslogtreecommitdiff
path: root/list.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-02-02 22:47:00 +0100
committerFelix Fietkau <nbd@openwrt.org>2008-02-02 22:47:00 +0100
commit9387bced4effec755ccd2a5cdb52c00d0c45990b (patch)
treeea876e34d2b5d990e31b73b8b1ae7be26aeabfd3 /list.c
parentb69b459ecce221f92235d0def138ff4af3c22543 (diff)
downloaduci-9387bced4effec755ccd2a5cdb52c00d0c45990b.tar.gz
add import merging functionality, fix error handling in uci_import
Diffstat (limited to 'list.c')
-rw-r--r--list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/list.c b/list.c
index ae7fce8..4ff4f7b 100644
--- a/list.c
+++ b/list.c
@@ -455,6 +455,8 @@ int uci_set(struct uci_context *ctx, struct uci_package *p, char *section, char
if (!e)
goto notfound;
o = uci_to_option(e);
+ } else if (internal && ctx->pctx) {
+ ctx->pctx->section = s;
}
/*