[Buildd-tools-devel] Bug#337761: bashism in /etc/init.d/schroot

Robert Luberda robert at debian.org
Sun Nov 6 09:57:31 UTC 2005


Package: schroot
Version: 0.1.7-1
Severity: important
Tags: patch

Hi, 

 [139]/home/robert> dash /etc/init.d/schroot start
 /etc/init.d/schroot: 18: Syntax error: "(" unexpected

The `function' keyword is a basishm, please remove it:

--- schroot.orig	2005-11-03 23:15:31.000000000 +0100
+++ schroot	2005-11-06 10:54:17.000000000 +0100
@@ -15,7 +15,7 @@
 
 set -e
 
-function recover_sessions()
+recover_sessions()
 {
     echo -n "Recovering schroot sessions... "
     for chroot in `schroot --all-sessions --list --quiet`


Best Regards,
robert

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/pdksh
Kernel: Linux 2.6.14
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages schroot depends on:
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libglib2.0-0                  2.8.3-1    The GLib library of C routines
ii  liblockdev1                   1.0.2-1    Run-time shared library for lockin
ii  libpam0g                      0.79-3     Pluggable Authentication Modules l
ii  libuuid1                      1.38-2     universally unique id library

schroot recommends no packages.

-- no debconf information




More information about the Buildd-tools-devel mailing list