summaryrefslogtreecommitdiff
path: root/src/cryptsetup-generator.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-06-06 22:59:19 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-06-06 22:59:19 +0200
commitaae5220d961a419a1e160de90ee5c393c7c13607 (patch)
tree33a1426ff8b71e92d91715e947494668143eb148 /src/cryptsetup-generator.c
parent78e39b43b89c6bf9ce401d6030939a004a23c850 (diff)
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
Diffstat (limited to 'src/cryptsetup-generator.c')
-rw-r--r--src/cryptsetup-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index 696f44ae36..db8ebdfb18 100644
--- a/src/cryptsetup-generator.c
+++ b/src/cryptsetup-generator.c
@@ -47,7 +47,7 @@ static bool has_option(const char *haystack, const char *needle) {
continue;
}
- if (f[l] != 0 && f[l] == ',') {
+ if (f[l] != 0 && f[l] != ',') {
f++;
continue;
}