chiark / gitweb /
Support negated fstab options
[elogind.git] / src / cryptsetup / cryptsetup.c
index 15dea7b65b47b1c25ad2bfbf4bac312b5b51b0aa..e6b37acb8620bc1da130fa1cffb05d7ae43ca488 100644 (file)
@@ -69,7 +69,7 @@ static int parse_one_option(const char *option) {
         assert(option);
 
         /* Handled outside of this tool */
-        if (streq(option, "noauto") || streq(option, "nofail"))
+        if (STR_IN_SET(option, "noauto", "auto", "nofail", "fail"))
                 return 0;
 
         if (startswith(option, "cipher=")) {