Comment 2 for bug 11889

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 13 Jan 2005 16:17:51 +0100
From: root <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: /etc/init.d/quagga: vtysh_enable gots incremented by one and isn't recognized

Package: quagga
Version: 0.98.0-1
Severity: grave
File: /etc/init.d/quagga
Justification: renders package unusable

if you set
vtysh_enable=1 (or yes or true)
in /etc/quagga/debian.conf
then convert_daemon_prios() in /etc/init.d/quagga increments it (after setting
to 1 if yes|true) by one.

but then "vtysh_b()" checks only "$vtysh_enable" = 1 and no "/usr/bin/vtysh -b"
takes place.

-------------------------------------------------------
--- /tmp/quagga 2005-01-10 19:48:26.000000000 +0100
+++ /etc/init.d/quagga 2005-01-13 16:05:29.000000000 +0100
@@ -121,7 +121,7 @@

          # Zebra is threatened special. It must be between 0=off and the first
           # user assigned value "1" so we increase all other enabled daemons' values.
- if [ "$name" != "zebra" -a "$value" -gt 0 ]; then value=$(( $value + 1 )); fi
+ if [ "$name" != "zebra" -a "$name" != "vtysh_enable" -a "$value" -gt 0 ]; then value=$(( $value + 1 )); fi

          # If e.g. name is zebra then we set "zebra=yes".
          eval $name=$value
@@ -187,6 +187,7 @@
 . "$C_PATH/daemons"
 . "$C_PATH/debian.conf"

+
 # Set priority of un-startable daemons to 'no' and substitute 'yes' to '0'
 convert_daemon_prios

-------------------------------------------------------

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc1
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages quagga depends on:
ii debconf 1.4.41 Debian configuration management sy
ii iproute 20041019-2 Professional tools to control the
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcap1 1:1.10-14 support for getting/setting POSIX.
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libreadline4 4.3-15 GNU readline and history libraries
ii libsnmp5 5.1.2-6 NET SNMP (Simple Network Managemen
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii logrotate 3.7-2 Log rotation utility

-- debconf information:
* quagga/upgrade_notes: