From f871002ecca2ca77d5781d44f6c2b82cc8c8af62 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 11 Aug 2020 22:37:10 -0600 Subject: [PATCH] multicall: add self_applet --- cmd/multicall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/multicall.c b/cmd/multicall.c index 6121776..9c8a891 100644 --- a/cmd/multicall.c +++ b/cmd/multicall.c @@ -27,6 +27,7 @@ extern struct if_applet ifquery_applet; extern struct if_applet ifup_applet; extern struct if_applet ifdown_applet; struct if_applet ifupdown_applet; +const struct if_applet *self_applet = NULL; struct if_applet *applet_table[] = { &ifdown_applet, @@ -62,6 +63,7 @@ main(int argc, char *argv[]) multicall_usage(EXIT_FAILURE); } + self_applet = *app; process_options(*app, argc, argv); return (*app)->main(argc, argv);