Package: bind9
Version: 1:9.19.17-1
Severity: normal
Tags: patch

A recent change in the iproute2 package moved the installed location
of the "ip" program from /bin/ip to /usr/bin/ip with the
iproute2-6.5.0-5 packaging.  That's all well and good of course.

On systems using sysvinit and not yet UsrMerged this snags a problem
in the sysvinit init script.  I know and understand that this is not a
combination that you or Debian is officially supporting.  But it would
help out interoperability if a one line fix were applied and your
kindness would be appreciated.

Here is the patch that corrects the problem.

--- named.original      2023-09-20 10:13:07.000000000 -0600
+++ named       2023-11-05 14:58:49.277781923 -0700
@@ -32,7 +32,7 @@
     if [ -x /usr/bin/uname ] && [ "X$(/usr/bin/uname -o)" = XSolaris ]; then
         LIST_NICS_IP=$(/sbin/ifconfig -au) || result=$?
     else
-        LIST_NICS_IP=$(/bin/ip addr) || result=$?
+        LIST_NICS_IP=$(ip addr) || result=$?
     fi
     if [ $result -ne 0 -o -z "${LIST_NICS_IP}" ]; then
        #log_action_msg "No networks configured."

PATH is already set and there is no need to use a hard coded path for
that program.  Doing so results in this situation now where movement
of the program executable causes failure.  Better just to call it and
have it be found on PATH.

Thank you for maintaining bind9 in Debian!

Bob

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-4-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Reply via email to