[pkg-cryptsetup-devel] Bug#524485: [cryptsetup] it's because piped `while-read' loop starts subshell

Rex Tsai chihchun at kalug.linux.org.tw
Wed Apr 29 14:13:00 UTC 2009


Package: cryptsetup
Version: 2:1.0.6+20090405.svn49-1

  I encountered same issue. After a quick check, I found the problem is
because cryptdisks_start use a while-read loop, which starts a subshell.

  For more details you can check
http://fvue.nl/wiki/Bash:_Piped_%60while-read%27_loop_starts_subshell

  Enclosed please find the patch for this problem.

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.30-rc3-686

Debian Release: squeeze/sid
  500 unstable        www.debian-multimedia.org
  500 unstable        snapshots.ekiga.net
  500 unstable        ftp.tw.debian.org
  500 stable          ftp.tw.debian.org
  500 stable          dl.google.com
  500 kernel-dists-trunk kernel-archive.buildserver.net
  500 jaunty          ppa.launchpad.net
    1 experimental    ftp.tw.debian.org

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-===============
libc6                        (>= 2.3) | 2.9-8
libdevmapper1.02.1     (>= 2:1.02.20) | 2:1.02.30-3
libpopt0                    (>= 1.14) | 1.14-4
libuuid1                    (>= 1.05) | 1.41.5-1
dmsetup                               | 2:1.02.30-3


Package's Recommends field is empty.

Suggests                  (Version) | Installed
===================================-+-===========
udev                                | 0.141-1
initramfs-tools          (>= 0.91)  | 0.93.2
 OR linux-initramfs-tool            |
dosfstools                          | 3.0.2-1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cryptsetup.diff
Type: text/x-diff
Size: 1463 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20090429/79d560b4/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20090429/79d560b4/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list