[pkg-dhcp-devel] Bug#794770: isc-dhcp-client: in the debug hook scripts, ${0%/*} should be changed to ${1%/*}

Vincent Lefevre vincent at vinc17.net
Thu Aug 6 13:23:15 UTC 2015


Package: isc-dhcp-client
Version: 4.3.2-1
Severity: minor

The debug hook scripts /etc/dhcp/dhclient-*-hooks.d/debug
(debian/debug in the source package) contain:

  echo $(date): entering ${0%/*}, dumping variables. \

which is output as:

  [...] entering /sbin, dumping variables.

"/sbin" is incorrect. Instead of ${0%/*}, it should be ${1%/*},
which which is output as (for the dhclient-enter-hooks.d script):

  [...] entering /etc/dhcp/dhclient-enter-hooks.d, dumping variables.

BTW, I also suggest to add quotes for more security (just in case):

  echo "$(date): entering ${1%/*}, dumping variables." \

-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages isc-dhcp-client depends on:
ii  debianutils       4.5.1
ii  iproute2          4.0.0-1
ii  isc-dhcp-common   4.3.2-1
ii  libc6             2.19-19
ii  libdns-export100  1:9.9.5.dfsg-11
ii  libirs-export91   1:9.9.5.dfsg-11
ii  libisc-export95   1:9.9.5.dfsg-11

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
ii  avahi-autoipd  0.6.31-5
pn  resolvconf     <none>

-- Configuration Files:
/etc/dhcp/dhclient-enter-hooks.d/debug changed [not included]
/etc/dhcp/dhclient-exit-hooks.d/debug changed [not included]

-- no debconf information



More information about the pkg-dhcp-devel mailing list