From 5615c30fd063f5e1dd71aaf43c72936cb85c43b2 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 25 Sep 2020 08:43:26 -0600 Subject: [PATCH] ifquery: don't build the dependency tree when querying for an interface's properties --- cmd/ifquery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ifquery.c b/cmd/ifquery.c index 6576457..9eb1f58 100644 --- a/cmd/ifquery.c +++ b/cmd/ifquery.c @@ -290,7 +290,7 @@ ifquery_main(int argc, char *argv[]) return EXIT_FAILURE; } - if (lif_lifecycle_count_rdepends(&exec_opts, &collection) == -1) + if (match_opts.property == NULL && lif_lifecycle_count_rdepends(&exec_opts, &collection) == -1) { fprintf(stderr, "%s: could not validate dependency tree\n", argv0); return EXIT_FAILURE;