From: Alan Cox Date: Sat, 17 Feb 2018 22:39:43 +0000 (+0000) Subject: syscall_other: bracketing X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f6ae44230f76a079fdb393b617afa7a3051d4e95;p=FUZIX.git syscall_other: bracketing --- diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index 055678dc..23e3029b 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -365,7 +365,7 @@ static int do_umount(uint16_t dev) /* If anything on this file system is open for write then you can't remount it read only */ - if (flags & (MS_RDONLY|MS_REMOUNT) == (MS_RDONLY|MS_REMOUNT)) { + if ((flags & (MS_RDONLY|MS_REMOUNT)) == (MS_RDONLY|MS_REMOUNT)) { for (ptr = i_tab ; ptr < i_tab + ITABSIZE; ++ptr) { if (ptr->c_dev == dev && !isdevice(ptr)) { /* Files being written block the remount ro, but so