aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mount.c2
-rw-r--r--util-linux/mount.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mount.c b/mount.c
index 17517fe21..9c438bf6c 100644
--- a/mount.c
+++ b/mount.c
@@ -144,7 +144,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
144 } 144 }
145 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */ 145 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */
146 error_msg("WARNING: loop device is read-only"); 146 error_msg("WARNING: loop device is read-only");
147 flags &= ~MS_RDONLY; 147 flags |= MS_RDONLY;
148 } 148 }
149 } 149 }
150#endif 150#endif
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,
144 } 144 }
145 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */ 145 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */
146 error_msg("WARNING: loop device is read-only"); 146 error_msg("WARNING: loop device is read-only");
147 flags &= ~MS_RDONLY; 147 flags |= MS_RDONLY;
148 } 148 }
149 } 149 }
150#endif 150#endif