Package: util-vserver
Version: 0.30.209-2
Severity: important

The start() (line 65), stop() (line 113), forcestop() (line 132), and
restart() (line 144) function contain bashisms (optional 'function'
keyword), causing --configure to fail when /bin/sh is not /bin/bash
(in this case, it's /bin/dash).  Removing 'function' from each of
these lines causes --configure to work successfully.

A patch which does this is included.

-- 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.12-1-k7
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages util-vserver depends on:
ii  debconf                  1.4.72          Debian configuration management sy
ii  iproute                  20051007-4      Professional tools to control the
ii  libbeecrypt6             4.1.2-4         open source C library of cryptogra
ii  libc6                    2.3.6-4         GNU C Library: Shared libraries an
ii  make                     3.80+3.81.rc2-1 The GNU version of the "make" util
ii  net-tools                1.60-17         The NET-3 networking toolkit

Versions of packages util-vserver recommends:
ii  binutils             2.16.1cvs20060117-1 The GNU assembler, linker and bina

-- debconf information:
  util-vserver/postrm_remove_vserver_configs: false
* util-vserver/start_on_boot: true
  util-vserver/prerm_stop_running_vservers: true
--- util-vserver.orig   2006-04-03 21:19:05.000000000 -0400
+++ util-vserver        2006-04-03 21:16:03.000000000 -0400
@@ -62,7 +62,7 @@
        done
 }
 
-function start()
+start()
 {
 
     # First set vserver related attributes for /proc, this
@@ -110,7 +110,7 @@
     echo
 }
 
-function stop()
+stop()
 {
     if [ -e /proc/self/vinfo ]
     then
@@ -129,7 +129,7 @@
 
 }
 
-function forcestop()
+forcestop()
 {
        echo "Stopping all running vservers..."
        for vserver in `vserver-stat | grep -v "CTX   PROC    VSZ    RSS  
userTIME   sysTIME    UPTIME NAME" |grep -v ^0 | awk '{print $8}'`
@@ -141,7 +141,7 @@
        # This is broken: /usr/lib/util-vserver/start-vservers --stop --running
 }
 
-function restart()
+restart()
 {
     stop
     start

Reply via email to