aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 17517fe21..9c438bf6c 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -144,7 +144,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
}
if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */
error_msg("WARNING: loop device is read-only");
- flags &= ~MS_RDONLY;
+ flags |= MS_RDONLY;
}
}
#endif