[uClibc] Problem with ttyname

Manuel Novoa III mjn3 at codepoet.org
Tue Jan 13 10:28:06 UTC 2004


On Tue, Jan 13, 2004 at 11:21:30AM +0100, Patrick Aussems wrote:
> Erik Andersen wrote:
> 
> >On Tue Jan 13, 2004 at 10:35:53AM +0100, Patrick Aussems wrote:
> > 
> >
> >>Yes it does. I also connected a serial console to the module and got the 
> >>following log messages:
> >>
> >>Jan  1 00:00:20 login[35]: unable to determine TTY name, got /dev/misc
> >>Jan  1 00:00:20 login[35]: root login  on `misc'
> >>
> >>But it works...
> >>   
> >>
> >
> >It would be very interesting to see what the actual ttyname
> >is when you are logged in.  
> >
> >Once you telnet in, what does 'ls -l /proc/self/fd/0' show?
> > 
> >
> # ls -l /proc/self/fd/0
> lrwx------    1 root     root           64 Jan  1 01:31 /proc/self/fd/0
> -> /dev/pty/s0

Thanks.  The code never did check the /dev/pty subdir.  The return value
error of the old ttyname was hiding the problem.  Should be fixed now
in cvs.

Manuel



More information about the uClibc mailing list