Package: dhcp3-server
Version: 3.0.2-1
Severity: important

In the test_config() function there is a >& operator (without destination).
This prevents execution (with "Bad fd error") on posix shell (tested with
dash and ash)

Patch is attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.11-1-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages dhcp3-server depends on:
ii  debconf                     1.4.51       Debian configuration management sy
ii  debianutils                 2.13.2       Miscellaneous utilities specific t
ii  dhcp3-common                3.0.2-1      Common files used by all the dhcp3
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

dhcp3-server recommends no packages.

-- debconf information:
* dhcp3-server/new_auth_behavior:
* dhcp3-server/interfaces: eth0
* dhcp3-server/config_warn:

-- 
---------------------------------------------------------------------
|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| [EMAIL PROTECTED] | http://www.prato.linux.it/~mnencia       |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4

--- /etc/init.d/dhcp3-server~   2005-06-21 21:58:52.000000000 +0200
+++ /etc/init.d/dhcp3-server    2005-06-21 22:01:09.000000000 +0200
@@ -22,7 +22,7 @@
 
 test_config()
 {
-       if ! /usr/sbin/dhcpd3 -t >& /dev/null; then
+       if ! /usr/sbin/dhcpd3 -t > /dev/null 2>&1; then
                echo "dhcpd self-test failed. Please fix the config file."
                echo "The error was: "
                /usr/sbin/dhcpd3 -t

Attachment: signature.asc
Description: Digital signature

Reply via email to