From 94f3a570e19554cddcda0e7dfa799fe8f03b4519 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Thu, 5 Jul 2001 14:46:07 +0000 Subject: [PATCH] Fix a thinko (the symptoms of which were reported by David Douthitt in bug #1111). --- mount.c | 2 +- util-linux/mount.c | 2 +- 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, } 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 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