public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	pavenis@latnet.lv
Subject: Re: [PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2
Date: Sun, 6 Feb 2005 19:28:45 +0100	[thread overview]
Message-ID: <20050206182845.GA24803@suse.de> (raw)
In-Reply-To: <200502021844.j12IilJJ029973@hera.kernel.org>

 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?

       reply	other threads:[~2005-02-06 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200502021844.j12IilJJ029973@hera.kernel.org>
2005-02-06 18:28 ` Olaf Hering [this message]
2005-02-06 19:30   ` [PATCH] Bug in tty_io.c after changes between 2.6.9-rc1-bk1 and 2.6.9-rc1-bk2 Olaf Hering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050206182845.GA24803@suse.de \
    --to=olh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavenis@latnet.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox