[pkg-cryptsetup-devel] Bug#499704: cryptsetup: decrypt_ssl script tries to use 'return' when it should use

Rene Wagner rw at nelianur.org
Sun Sep 21 12:31:19 UTC 2008


Package: cryptsetup
Version: 2:1.0.6-6
Severity: normal
Tags: patch

Hi,

the /lib/cryptsetup/scripts/decrypt_ssl keyscript tries to return from
a non-function context resulting in the following error:

/lib/cryptsetup/scripts/decrypt_ssl: line 17: return: can only `return' from a function or sourced script

See the attached patch for the obvious fix.

Cheers,

Rene



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.27-3 The Linux Kernel Device Mapper use
ii  libc6                        2.7-13      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.27-3 The Linux Kernel Device Mapper use
ii  libpopt0                     1.14-4      lib for parsing cmdline parameters
ii  libuuid1                     1.41.0-3    universally unique id library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
pn  dosfstools                    <none>     (no description available)
ii  initramfs-tools [linux-initra 0.92j      tools for generating an initramfs
ii  udev                          0.125-6    /dev/ and hotplug management daemo

-- no debconf information
-------------- next part --------------
--- decrypt_ssl.orig	2008-09-21 14:07:25.000000000 +0200
+++ decrypt_ssl	2008-09-21 14:07:36.000000000 +0200
@@ -14,4 +14,4 @@
 }
 
 decrypt_ssl $1
-return $?
+exit $?


More information about the pkg-cryptsetup-devel mailing list