chiark / gitweb /
cryptsetup: accept both "read-only" and "readonly" spellings
[elogind.git] / src / cryptsetup / cryptsetup.c
index f33284370c0d7c3d588116198abe30ac67cb7d77..a8cdf10177b6311642470d05976610c2fa7bbe7f 100644 (file)
@@ -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;