Commit edffd6d0 authored by Linus Torvalds's avatar Linus Torvalds

Undo recent tty_io.c "fix".

The fix was just trying to hide the real bug, which was in
an old udev script. The change made matters worse.

Cset exclude: pavenis@latnet.lv[torvalds]|ChangeSet|20050202164823|05506
parent e9c421e2
...@@ -1156,7 +1156,7 @@ static inline void pty_line_name(struct tty_driver *driver, int index, char *p) ...@@ -1156,7 +1156,7 @@ static inline void pty_line_name(struct tty_driver *driver, int index, char *p)
int i = index + driver->name_base; int i = index + driver->name_base;
/* ->name is initialized to "ttyp", but "tty" is expected */ /* ->name is initialized to "ttyp", but "tty" is expected */
sprintf(p, "%s%c%x", sprintf(p, "%s%c%x",
driver->subtype == PTY_TYPE_SLAVE ? "pty" : driver->name, driver->subtype == PTY_TYPE_SLAVE ? "tty" : driver->name,
ptychar[i >> 4 & 0xf], i & 0xf); ptychar[i >> 4 & 0xf], i & 0xf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment