diff options
| author | 2020-01-28 17:17:04 +0000 | |
|---|---|---|
| committer | 2020-01-28 17:17:04 +0000 | |
| commit | 4e472648a6e21397024c2ba85aa7660fd5baabb9 (patch) | |
| tree | 717a3a0e4fd5aa12e90dee63b83806909910522f /usr.sbin/bind/bin/dig/dig.c | |
| parent | We only need to be able to parse tsig key files, rip out all the rest (diff) | |
| download | wireguard-openbsd-4e472648a6e21397024c2ba85aa7660fd5baabb9.tar.xz wireguard-openbsd-4e472648a6e21397024c2ba85aa7660fd5baabb9.zip | |
Switch to Makefile based builds.
Delete a bunch of files that were no longer built but still lying
around. Since there are no subdirectories below obj any more we
need to prefix dns/{log,time,result}.c with dns_ to not conflict
with the same names used by lib/isc/.
OK sthen
Diffstat (limited to 'usr.sbin/bind/bin/dig/dig.c')
| -rw-r--r-- | usr.sbin/bind/bin/dig/dig.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bind/bin/dig/dig.c b/usr.sbin/bind/bin/dig/dig.c index dd7b1528594..f13d05f5b4d 100644 --- a/usr.sbin/bind/bin/dig/dig.c +++ b/usr.sbin/bind/bin/dig/dig.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.43 2020/01/26 14:50:47 jca Exp $ */ +/* $Id: dig.c,v 1.44 2020/01/28 17:17:04 florian Exp $ */ /*! \file */ #include <sys/cdefs.h> @@ -2020,6 +2020,12 @@ dig_shutdown() { /*% Main processing routine for dig */ int main(int argc, char **argv) { + extern char *__progname; + + if (strcmp("host", __progname) == 0) + return host_main(argc, argv); + if (strcmp("nslookup", __progname) == 0) + return nslookup_main(argc, argv); dig_setup(argc, argv); dig_query_setup(ISC_FALSE, ISC_FALSE, argc, argv); |
