mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
[master] don't use strncasecmp for command line option
This commit is contained in:
@@ -754,7 +754,7 @@ do_next_command(char *input) {
|
|||||||
show_settings(ISC_TRUE, ISC_TRUE);
|
show_settings(ISC_TRUE, ISC_TRUE);
|
||||||
} else if (strcasecmp(ptr, "exit") == 0) {
|
} else if (strcasecmp(ptr, "exit") == 0) {
|
||||||
in_use = ISC_FALSE;
|
in_use = ISC_FALSE;
|
||||||
} else if (strncasecmp(ptr, "ver", 3) == 0) {
|
} else if (strcasecmp(ptr, "version") == 0) {
|
||||||
version();
|
version();
|
||||||
} else if (strcasecmp(ptr, "help") == 0 ||
|
} else if (strcasecmp(ptr, "help") == 0 ||
|
||||||
strcasecmp(ptr, "?") == 0) {
|
strcasecmp(ptr, "?") == 0) {
|
||||||
|
Reference in New Issue
Block a user