public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2
       [not found] <200502021844.j12IilJJ029973@hera.kernel.org>
@ 2005-02-06 18:28 ` Olaf Hering
  2005-02-06 19:30   ` Olaf Hering
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2005-02-06 18:28 UTC (permalink / raw)
  To: Linux Kernel Mailing List, pavenis

 On Thu, Feb 03, Linux Kernel Mailing List wrote:

> ChangeSet 1.1992.2.73, 2005/02/02 08:48:23-08:00, pavenis@latnet.lv
> 
> 	[PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2
> 	
> 	Fix http://bugzilla.kernel.org/show_bug.cgi?id=3736
> 	
> 	Finally located that a problem seems to be a simple typo.
> 	
> 	Acked-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
> 	Signed-off-by: Andrew Morton <akpm@osdl.org>
> 	Signed-off-by: Linus Torvalds <torvalds@osdl.org>
> 
> 
> 
>  tty_io.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> 
> diff -Nru a/drivers/char/tty_io.c b/drivers/char/tty_io.c
> --- a/drivers/char/tty_io.c	2005-02-02 10:45:08 -08:00
> +++ b/drivers/char/tty_io.c	2005-02-02 10:45:08 -08:00
> @@ -1156,8 +1156,8 @@
>  	int i = index + driver->name_base;
>  	/* ->name is initialized to "ttyp", but "tty" is expected */
>  	sprintf(p, "%s%c%x",
> -			driver->subtype == PTY_TYPE_SLAVE ? "tty" : driver->name,
> -			ptychar[i >> 4 & 0xf], i & 0xf);
> +		driver->subtype == PTY_TYPE_SLAVE ? "pty" : driver->name,
> +		ptychar[i >> 4 & 0xf], i & 0xf);
>  }

This change looks very bogus, what are you trying to fix here?

if pty_driver->subtype == PTY_TYPE_MASTER, a node ptyXY has to be created.
if pty_driver->subtype == PTY_TYPE_SLAVE, a node ttyXY has to be created.
See Documentation/devices.txt, line 108ff and 183ff

With your change, the ttyXY becomes ptyXY? Why does that fix anything?

Do you have an outdated udev package with bogus udev.rules?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2
  2005-02-06 18:28 ` [PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2 Olaf Hering
@ 2005-02-06 19:30   ` Olaf Hering
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf Hering @ 2005-02-06 19:30 UTC (permalink / raw)
  To: Linux Kernel Mailing List, pavenis

 On Sun, Feb 06, Olaf Hering wrote:

> Do you have an outdated udev package with bogus udev.rules?

Your strace clearly shows /dev/tty as a directory.
Go and ask Linus to revert your broken patch.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-06 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200502021844.j12IilJJ029973@hera.kernel.org>
2005-02-06 18:28 ` [PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2 Olaf Hering
2005-02-06 19:30   ` Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox