implement uci_commit()
[project/uci.git] / cli.c
diff --git a/cli.c b/cli.c
index 8ab3850..1fa1cb1 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -105,7 +105,7 @@ static int uci_do_export(int argc, char **argv)
                        ret = uci_load(ctx, *p, &package);
                        if (ret)
                                continue;
-                       uci_export(ctx, stdout, package);
+                       uci_export(ctx, stdout, package, true);
                        uci_unload(ctx, package);
                }
        }
@@ -209,7 +209,7 @@ static int uci_do_set(int argc, char **argv)
                uci_perror(ctx, "uci");
                return 1;
        }
-       uci_show_package(p, NULL);
+       uci_commit(ctx, p);
        return 0;
 }