chiark / gitweb /
cryptsetup-generator: fix /etc/cryptsetup options
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 6 Jun 2011 20:59:19 +0000 (22:59 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 6 Jun 2011 20:59:19 +0000 (22:59 +0200)
commitaae5220d961a419a1e160de90ee5c393c7c13607
tree33a1426ff8b71e92d91715e947494668143eb148
parent78e39b43b89c6bf9ce401d6030939a004a23c850
cryptsetup-generator: fix /etc/cryptsetup options

cryptsetup-generator parses the options in /etc/cryptsetup incorrectly.
It fails to find the 'swap' option in
  swap,foo
and instead it matches on
  swaplalala,foo

The condition for the comma separator is reversed.

https://bugzilla.redhat.com/show_bug.cgi?id=710839
src/cryptsetup-generator.c