X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=list.c;h=4ff4f7b342bf340c9c5eb82b8d1a3f2d2a6ee779;hp=ae7fce841695056895152e845fa2fe64095806ee;hb=9387bced4effec755ccd2a5cdb52c00d0c45990b;hpb=b69b459ecce221f92235d0def138ff4af3c22543 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; } /*