Fix a thinko (the symptoms of which were reported by
authorMatt Kraai <kraai@debian.org>
Thu, 5 Jul 2001 14:46:07 +0000 (14:46 -0000)
committerMatt Kraai <kraai@debian.org>
Thu, 5 Jul 2001 14:46:07 +0000 (14:46 -0000)
David Douthitt in bug #1111).

mount.c
util-linux/mount.c

diff --git a/mount.c b/mount.c
index 17517fe21f86efd580121aac8f88ab841e91e5ae..9c438bf6c9a9e41477b4aa2452f5c251297fc6b1 100644 (file)
--- a/mount.c
+++ b/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
index 17517fe21f86efd580121aac8f88ab841e91e5ae..9c438bf6c9a9e41477b4aa2452f5c251297fc6b1 100644 (file)
@@ -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