summaryrefslogtreecommitdiffstats
path: root/mount
diff options
context:
space:
mode:
authorKarel Zak2010-05-28 14:58:22 +0200
committerKarel Zak2010-05-28 14:58:22 +0200
commit87c9548fe513db6d4da2d7f0197ef1b9bb009bad (patch)
tree929915df14692c56d8ae583a7bd8e82c517e0b87 /mount
parentmount: detect when kernel silently adds MS_RDONLY flag (diff)
downloadkernel-qcow2-util-linux-87c9548fe513db6d4da2d7f0197ef1b9bb009bad.tar.gz
kernel-qcow2-util-linux-87c9548fe513db6d4da2d7f0197ef1b9bb009bad.tar.xz
kernel-qcow2-util-linux-87c9548fe513db6d4da2d7f0197ef1b9bb009bad.zip
mount: fix coding style
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r--mount/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/mount.c b/mount/mount.c
index 4f2dcd24f..865665bfa 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -1440,7 +1440,7 @@ try_mount_one (const char *spec0, const char *node0, const char *types0,
* and 'rw' in mtab.
*/
if (!fake && mnt5_res == 0 &&
- !(flags & MS_RDONLY) && !(flags & MS_PROPAGATION) && !(flags & MS_MOVE) &&
+ !(flags & (MS_RDONLY | MS_PROPAGATION | MS_MOVE)) &&
is_readonly(node)) {
printf(_("mount: warning: %s seems to be mounted read-only.\n"), node);