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
This commit is contained in:
parent
78e39b43b8
commit
aae5220d96
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue