[PATCH] Fix: quote parameters to get_device_opts

Christian Jaeger christian at jaeger.mine.nu
Wed Dec 10 22:07:07 UTC 2008


Or, when using set -eu, get_device_opts would stop with
 $2: unbound variable

Signed-off-by: Christian Jaeger <christian at jaeger.mine.nu>
---
 debian/initramfs/cryptroot-hook |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/initramfs/cryptroot-hook b/debian/initramfs/cryptroot-hook
index 51ca537..815b133 100644
--- a/debian/initramfs/cryptroot-hook
+++ b/debian/initramfs/cryptroot-hook
@@ -348,7 +348,7 @@ add_device() {
 		fi
 
 		# Get crypttab root options
-		if ! get_device_opts $node $opts; then
+		if ! get_device_opts "$node" "$opts"; then
 			continue
 		fi
 		echo "$OPTIONS" >> "$DESTDIR/conf/conf.d/cryptroot"
-- 
1.6.0.5


--------------040205070700080306060505
Content-Type: text/x-patch;
 name="0003-Fix-initialize-HASH_FOUND-and-LUKS_FOUND-to.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0003-Fix-initialize-HASH_FOUND-and-LUKS_FOUND-to.patch"



More information about the pkg-cryptsetup-devel mailing list