Fixes: 3721a756b0d8 ("Cygwin: console: Make the console accessible from other terminals.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
if (dev.get_minor () < MAX_CONS_DEV)
{
unsigned long bitmask = fhandler_console::console_unit (-1);
- return bitmask & (1UL << dev.get_minor ());
+ return !!(bitmask & (1UL << dev.get_minor ()));
}
return false;
}
if (dev.get_minor () < MAX_CONS_DEV)
{
unsigned long bitmask = fhandler_console::console_unit (-1);
- return bitmask & (1UL << dev.get_minor ());
+ return !!(bitmask & (1UL << dev.get_minor ()));
}
return false;
}
Addresses: https://github.com/msys2/msys2-runtime/issues/198
- Fix the problem that VMIN and VTIME does not work at all in console.
+
+- Fix a bug that cannot handle consoles more than 32, rather than 64.