2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Use "digit" class instead of character range in rndc_dumpdb()

The tr range did not work on Solaris 11.4. Let's use a class that is
defined in POSIX.
This commit is contained in:
Michal Nowak
2025-05-30 12:26:42 +02:00
parent 513f5ad8e0
commit baa5ccd795

View File

@@ -440,7 +440,7 @@ rndc_dumpdb() {
__ret=0
__dump_complete=0
__server="${1}"
__ip="10.53.0.$(echo "${__server}" | tr -c -d "0-9")"
__ip="10.53.0.$(echo "${__server}" | tr -c -d '[:digit:]')"
shift
${RNDC} -c ../_common/rndc.conf -p "${CONTROLPORT}" -s "${__ip}" dumpdb "$@" >"rndc.out.test${n}" 2>&1 || __ret=1