Fix quoting issue (bug #380729)
authorSebastian Pipping <sebastian@pipping.org>
Tue, 30 Aug 2011 15:33:27 +0000 (17:33 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 30 Aug 2011 15:33:27 +0000 (17:33 +0200)
ChangeLog
defaults/initrd.scripts

index 6b00bda04ebbf4a0937705cdd0a9b112051f08c1..fd11f8edef082cb210960689e315e0a185f2aabb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,12 @@
 # Distributed under the GPL v2
 # $Id$
 
+  30 Aug 2011; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts:
+  Fix quoting issue (bug #380729).
+
+  Thanks to:
+  - Axel Bringenberg
+
   30 Aug 2011; Sebastian Pipping <sping@gentoo.org>
   +patches/mdadm/3.1.4/mdadm-3.1.4-z-now.patch, gen_compile.sh:
   Enable patch application for mdadm, add patch to fix compilation (bug
index 32e3417f3ba2bfddf793ebc673bcf8f59e5102d3..bf31042d0845f19f1c2aabb4eb7a4ef1d0b4ad39 100755 (executable)
@@ -858,7 +858,7 @@ openLUKS() {
                                        fi
                                        # At this point a candidate key exists (either mounted before or not)
                                        good_msg "${LUKS_KEY} on device ${LUKS_KEYDEV} found" ${CRYPT_SILENT}
-                                       if [ $(echo ${LUKS_KEY} | grep -o '.gpg$') = ".gpg" ] && [ -e /sbin/gpg ] ; then
+                                       if [ "$(echo ${LUKS_KEY} | grep -o '.gpg$')" = ".gpg" ] && [ -e /sbin/gpg ] ; then
                                                [ -e /dev/tty ] && mv /dev/tty /dev/tty.org
                                                mknod /dev/tty c 5 1
                                                cryptsetup_options="-d -"