diff options
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 8ff94611c..0998b0110 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -682,6 +682,8 @@ static void sanitize_paths(struct libmnt_context *cxt) static void append_option(struct libmnt_context *cxt, const char *opt) { + if (opt && (*opt == '=' || *opt == '\'' || *opt == '\"' || isblank(*opt))) + errx(MOUNT_EX_USAGE, _("unsupported option format: %s"), opt); if (mnt_context_append_options(cxt, opt)) err(MOUNT_EX_SYSERR, _("failed to append option '%s'"), opt); } |