Improve the MS_RDONLY check.

(Logical change 1.153)
edge.strict_endians
cantab.net!aia21 2003-07-12 15:46:12 +00:00
parent 993640ad31
commit c6069336f8
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ ntfs_volume *ntfs_volume_startup(struct ntfs_device *dev, unsigned long rwflag)
vol = ntfs_volume_alloc();
if (!vol)
goto error_exit;
if (rwflag & MS_RDONLY)
if ((rwflag & MS_RDONLY) == MS_RDONLY)
NVolSetReadOnly(vol);
Dprintf("Reading bootsector... ");
if (dev->d_ops->open(dev, NVolReadOnly(vol) ? O_RDONLY: O_RDWR)) {