From 593399a67a331c0e8d0e290393aaf38e01cf8d1b Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 19 Jun 2000 18:55:46 +0000 Subject: [PATCH] lwresd is no longer named -r, it's now a link --- bin/named/main.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/bin/named/main.c b/bin/named/main.c index 27d8001e2d..41f8e717ca 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -175,10 +176,19 @@ static void parse_command_line(int argc, char *argv[]) { int ch; unsigned int port; + char *s; + + s = strrchr(argv[0], '/'); + if (s == NULL) + s = argv[0]; + else + s++; + if (strcmp(s, "lwresd") == 0) + lwresd_only = ISC_TRUE; isc_commandline_errprint = ISC_FALSE; while ((ch = isc_commandline_parse(argc, argv, - "c:d:fgn:N:p:rst:u:x:")) != + "c:d:fgn:N:p:st:u:x:")) != -1) { switch (ch) { case 'c': @@ -207,9 +217,6 @@ parse_command_line(int argc, char *argv[]) { isc_commandline_argument); ns_g_port = port; break; - case 'r': - lwresd_only = ISC_TRUE; - break; case 's': /* XXXRTH temporary syntax */ want_stats = ISC_TRUE;