Fix a thinko (the symptoms of which were reported by
David Douthitt in bug #1111).
diff --git a/mount.c b/mount.c
index 17517fe..9c438bf 100644
--- a/mount.c
+++ b/mount.c
@@ -144,7 +144,7 @@
}
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
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 17517fe..9c438bf 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -144,7 +144,7 @@
}
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