diff options
Diffstat (limited to 'mount/mount.c')
-rw-r--r-- | mount/mount.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mount/mount.c b/mount/mount.c index 2e819e95b..f2b6ee23e 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -491,9 +491,11 @@ parse_opts (const char *options, int *flags, char **extra_opts) { if (readwrite) *flags &= ~MS_RDONLY; - if (mounttype & MS_PROPAGATION) - *flags &= ~MS_BIND; *flags |= mounttype; + + /* The propagation flags should not be used together with any other flags */ + if (*flags & MS_PROPAGATION) + *flags &= MS_PROPAGATION; } /* Try to build a canonical options string. */ |