[Pkg-cryptsetup-devel] Bug#488128: cryptsetup: Please support comments at the end of lines in /etc/crypttab

James Westby jw+debian at jameswestby.net
Thu Jun 26 16:39:27 UTC 2008


Package: cryptsetup
Version: 2:1.0.6-2
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

In

  https://bugs.edge.launchpad.net/ubuntu/+source/cryptsetup/+bug/185380

a user had problems due to attempting to use a comment at the end of the
line in /etc/crypttab. It would be great if you could support this.

The following patch by Reinhard Tartler is used in Ubuntu to allow
this. Please consider applying it.

Thanks,

James


diff -pruN 2:1.0.6-2/debian/cryptdisks.functions
2:1.0.6-2ubuntu7/debian/cryptdisks.functions
--- 2:1.0.6-2/debian/cryptdisks.functions	2008-06-20 22:19:57.000000000 +0100
+++ 2:1.0.6-2ubuntu7/debian/cryptdisks.functions	2008-06-20 22:16:41.000000000 +0100
@@ -32,7 +32,9 @@ esac
 parse_opts () {
 	local opts opt IFS PARAM VALUE
 
-	opts="$1"
+	# bugfix: support comments in lines not starting with an #
+	# https://bugs.launchpad.net/bugs/185380
+	opts=$(echo -n $1 | sed 's/ *#.*//')
 	LOUD=""
 	PARAMS=""
 	CHECK=""






More information about the Pkg-cryptsetup-devel mailing list