Remove verification in mount(8) and instead use validation based on
parser.
Signed-off-by: Karel Zak <kzak@redhat.com>
{
char *o = NULL;
- if (opt && (*opt == '=' || *opt == '\'' || *opt == '\"' || isblank(*opt)))
+ if (opt && !ul_optstr_is_valid(opt))
errx(MNT_EX_USAGE, _("unsupported option format: %s"), opt);
- if (arg && *arg)
+ if (opt && arg && *arg)
xasprintf(&o, "%s=\"%s\"", opt, arg);
if (mnt_context_append_options(cxt, o ? : opt))