[PATCH] ttyname.c Re: [uClibc]tinylogin vs uclibc problems
Erik Andersen
andersen at codepoet.org
Tue Nov 5 16:28:59 UTC 2002
On Tue Nov 05, 2002 at 10:21:54AM -0500, Danny Lepage wrote:
> Hi there.
>
> It seems that uclibc ttyname() have some problem when we are not using
> devfs or devpts and stdin,stdout and stderr are links to
> /proc/self/fd/(0,1,2).
>
> In this case, ttyname returns "stdin" instead of the ttyname.
>
> The include patch fixed it. It modifies __check_dir_for_tty_match() to
> use lstat instead of stat so that it won't return "softlinks" as tty
> name, only the "real name" of a char device.
Thanks, your patch makes sense. Applied.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list