summaryrefslogtreecommitdiff
path: root/cli.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@pi.lan>2008-08-23 13:39:05 +0200
committerFelix Fietkau <nbd@pi.lan>2008-08-23 13:39:05 +0200
commitc1684cd213ebc7b0064f9dfe536b5d5283a18ef4 (patch)
treede37c784f18881fc086ec173e3eea2e2e1d205e2 /cli.c
parent6ae6536eddd7605135a5e18c92fefc3e442943bd (diff)
downloaduci-c1684cd213ebc7b0064f9dfe536b5d5283a18ef4.tar.gz
filter incomplete lookups on uci show
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli.c b/cli.c
index 46da45a..1f08100 100644
--- a/cli.c
+++ b/cli.c
@@ -202,6 +202,8 @@ static int package_cmd(int cmd, char *tuple)
uci_export(ctx, stdout, ptr.p, true);
break;
case CMD_SHOW:
+ if (!(ptr.flags & UCI_LOOKUP_COMPLETE))
+ return 1;
switch(e->type) {
case UCI_TYPE_PACKAGE:
uci_show_package(ptr.p);