mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
lwresd is no longer named -r, it's now a link
This commit is contained in:
parent
cd720113a2
commit
593399a67a
@ -18,6 +18,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <isc/app.h>
|
||||
#include <isc/commandline.h>
|
||||
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user