Commit a9fca92c95 for bind
commit a9fca92c9508b35bfa95b5771823e12d6a3370e5
Author: Petr Menšík <pemensik@redhat.com>
Date: Fri Jul 17 19:42:39 2026 +0200
Support program suffixes of tsig-keygen and ddns-confgen
Suffixes different than .exe are used on Fedora. But those commands
require exact names only. Allow switching between two variants only from
prefix. That should work on all platforms. It should support also names
like tsig-keygen-9.18 or tsig-keygen-9.21.
The same case applies to named-checkzone and named-compilezone.
Use new string prefix functions.
diff --git a/bin/check/named-checkzone.c b/bin/check/named-checkzone.c
index 7f27484790..ad70b73b8d 100644
--- a/bin/check/named-checkzone.c
+++ b/bin/check/named-checkzone.c
@@ -113,10 +113,12 @@ main(int argc, char **argv) {
isc_commandline_init(argc, argv);
- if (strcasecmp(isc_commandline_progname, "named-checkzone") == 0) {
+ if (isc_string_casehasprefix(isc_commandline_progname,
+ "named-checkzone"))
+ {
progmode = progmode_check;
- } else if (strcasecmp(isc_commandline_progname, "named-compilezone") ==
- 0)
+ } else if (isc_string_casehasprefix(isc_commandline_progname,
+ "named-compilezone"))
{
progmode = progmode_compile;
} else {
diff --git a/bin/confgen/tsig-keygen.c b/bin/confgen/tsig-keygen.c
index fc278214bc..a7fdf21173 100644
--- a/bin/confgen/tsig-keygen.c
+++ b/bin/confgen/tsig-keygen.c
@@ -100,10 +100,12 @@ main(int argc, char **argv) {
isc_commandline_init(argc, argv);
- if (strcasecmp(isc_commandline_progname, "tsig-keygen") == 0) {
+ if (isc_string_casehasprefix(isc_commandline_progname, "tsig-keygen")) {
progmode = progmode_keygen;
quiet = true;
- } else if (strcasecmp(isc_commandline_progname, "ddns-confgen") == 0) {
+ } else if (isc_string_casehasprefix(isc_commandline_progname,
+ "ddns-confgen"))
+ {
progmode = progmode_confgen;
} else {
UNREACHABLE();