From: Felix Fietkau Date: Sat, 23 Aug 2008 11:39:05 +0000 (+0200) Subject: filter incomplete lookups on uci show X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c1684cd213ebc7b0064f9dfe536b5d5283a18ef4;p=uci.git filter incomplete lookups on uci show --- 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);