[pkg-dhcp-devel] Bug#800914: isc-dhcp-client: dhclient-script fails with /bin/sh=/bin/dash after latest upgrade

Lorenzo Beretta lory.fulgi at infinito.it
Sun Oct 4 21:49:58 UTC 2015


Package: isc-dhcp-client
Version: 4.3.3-5
Severity: important

Dear Maintainer,

dhclient (invoked by wicd in my case) used to work until the last
upgrade, today it breaks because dhclient-script complains about
an illegal number at line 136:
        run_hookdir() {
            local dir
            local exit_status
            dir="$1"

            if [ -d "$dir" ]; then
                for script in $(run-parts --list $dir); do
                    run_hook $script
                    exit_status=$((exit_status|$?))
                done
            fi

            return $exit_status
        }
It seems that dash doesn't support var=$((var ... )) when var is unset,
so please init exit_status to zero.

Regards



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages isc-dhcp-client depends on:
ii  debianutils       4.5.1
ii  iproute2          4.1.1-1
ii  libc6             2.19-22
ii  libdns-export100  1:9.9.5.dfsg-12
ii  libisc-export95   1:9.9.5.dfsg-12

Versions of packages isc-dhcp-client recommends:
ii  isc-dhcp-common  4.3.3-5

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

-- Configuration Files:
/etc/dhcp/dhclient.conf changed [not included]

-- no debconf information



More information about the pkg-dhcp-devel mailing list