The attached patch may still be needed in 2.1.127 to avoid really bad
misbehavior when there's an attempt to open /dev/ptmx and UNIX98
ptys aren't configured. I don't know the code that well -- is it?
-- Chip Salzenberg - a.k.a. - <chip@perlsupport.com> "There -- we made them swerve slightly!" //MST3K--fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch
Index: drivers/char/tty_io.c *************** retry_open: *** 1270,1275 **** noctty = 1; } ! #ifdef CONFIG_UNIX98_PTYS if (device == PTMX_DEV) { /* find a free pty. */ int major, minor; --- 1270,1277 ---- noctty = 1; } ! if (device == PTMX_DEV) { + #ifdef CONFIG_UNIX98_PTYS + /* find a free pty. */ int major, minor; *************** retry_open: *** 1294,1300 **** noctty = 1; goto init_dev_done; } ! #endif ! retval = init_dev(device, &tty); if (retval) --- 1296,1307 ---- noctty = 1; goto init_dev_done; + + #else /* CONFIG_UNIX_98_PTYS */ + + return ENODEV; + + #endif /* CONFIG_UNIX_98_PTYS */ } ! retval = init_dev(device, &tty); if (retval)
--fdj2RfSjLxBAspz7--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/