X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=e17acb5fe3c18d277a61b09426dd7533c00a38da;hp=410d7e82f06fa2e4e94c8867c128960a945f4e52;hb=4aa3fd762e2190a4e418581cf24446484d0b7df5;hpb=cd857cc9c374f33631eb536339fb1915fd102ea9 diff --git a/cli.c b/cli.c index 410d7e8..e17acb5 100644 --- a/cli.c +++ b/cli.c @@ -176,7 +176,10 @@ static int uci_do_set(int argc, char **argv) uci_perror(ctx, "uci"); return 1; } - uci_commit(ctx, p); + if (uci_save(ctx, p) != UCI_OK) { + uci_perror(ctx, "uci"); + return 1; + } return 0; }