Commit 18cf1a1b authored by Michal Schmidt's avatar Michal Schmidt
Browse files

cryptsetup: accept both "read-only" and "readonly" spellings

Mukund Sivaraman pointed out that cryptsetup(5) mentions the "read-only"
option, while the code understands "readonly".

We could just fix the manpage, but for consistency in naming of
multi-word options it would be prettier to have "read-only". So let's
accept both spellings.

parent 682cfdff
......@@ -182,7 +182,7 @@
<listitem><para>Set up the encrypted
block device in read-only
......@@ -111,7 +111,7 @@ static int parse_one_option(const char *option) {
return 0;
} else if (streq(option, "readonly"))
} else if (streq(option, "readonly") || streq(option, "read-only"))
opt_readonly = true;
else if (streq(option, "verify"))
opt_verify = true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment