mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 21:17:54 +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 <config.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <isc/app.h>
|
#include <isc/app.h>
|
||||||
#include <isc/commandline.h>
|
#include <isc/commandline.h>
|
||||||
@ -175,10 +176,19 @@ static void
|
|||||||
parse_command_line(int argc, char *argv[]) {
|
parse_command_line(int argc, char *argv[]) {
|
||||||
int ch;
|
int ch;
|
||||||
unsigned int port;
|
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;
|
isc_commandline_errprint = ISC_FALSE;
|
||||||
while ((ch = isc_commandline_parse(argc, argv,
|
while ((ch = isc_commandline_parse(argc, argv,
|
||||||
"c:d:fgn:N:p:rst:u:x:")) !=
|
"c:d:fgn:N:p:st:u:x:")) !=
|
||||||
-1) {
|
-1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'c':
|
case 'c':
|
||||||
@ -207,9 +217,6 @@ parse_command_line(int argc, char *argv[]) {
|
|||||||
isc_commandline_argument);
|
isc_commandline_argument);
|
||||||
ns_g_port = port;
|
ns_g_port = port;
|
||||||
break;
|
break;
|
||||||
case 'r':
|
|
||||||
lwresd_only = ISC_TRUE;
|
|
||||||
break;
|
|
||||||
case 's':
|
case 's':
|
||||||
/* XXXRTH temporary syntax */
|
/* XXXRTH temporary syntax */
|
||||||
want_stats = ISC_TRUE;
|
want_stats = ISC_TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user