summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
authorKarel Zak2012-05-28 19:54:16 +0200
committerKarel Zak2012-05-28 19:54:16 +0200
commitb0d3657def61d62746257b825ea333beec64f1ce (patch)
tree24fed0a076c439468821340828622dfd8cd1b215 /sys-utils/mount.c
parenttests: add losetup/mount encryption test (diff)
downloadkernel-qcow2-util-linux-b0d3657def61d62746257b825ea333beec64f1ce.tar.gz
kernel-qcow2-util-linux-b0d3657def61d62746257b825ea333beec64f1ce.tar.xz
kernel-qcow2-util-linux-b0d3657def61d62746257b825ea333beec64f1ce.zip
mount: (new) fix MS_REC usage
# mount -R /mnt/test /mnt/test mount: propagation flags (--make-* or --bind options) are mutually exclusive Reported-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index a4fbd9b8f..2b8843cc7 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -902,7 +902,7 @@ int main(int argc, char **argv)
usage(stderr);
if (oper) {
- if (!is_power_of_2(oper))
+ if (!is_power_of_2(oper & ~MS_REC))
errx(MOUNT_EX_USAGE, _("propagation flags (--make-* or --bind options) are mutually exclusive"));
if (oper != MS_BIND && mnt_context_get_options(cxt))