Fix a thinko (the symptoms of which were reported by

David Douthitt in bug #1111).
This commit is contained in:
Matt Kraai 2001-07-05 14:46:07 +00:00
parent 8df319b213
commit 94f3a570e1
2 changed files with 2 additions and 2 deletions

View 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

View 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