bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

talk/talkd on solaris 2.8


From: Michael Weiser
Subject: talk/talkd on solaris 2.8
Date: Fri, 29 Jun 2001 14:08:35 +0200

Hello,

I needed some ntalk client/server for Solaris 2.8 since Sun only supports
talk by default. After some searching the talk/talkd from inetutils seemed
best suited for me and I installed 'em. They compiled okay but I needed
the attached patch to make client and server finallay work correctly:

The client doesn't by default accept carriage returns and instead outputs
^M to the console. I checked the Linux netkit talk and found that it
checks for \r in addition to \n as line feed and added the check
respectively.

Also the client outputs '[Connection established]^G^G^G' since the 007's
don't get interpreted by the terminal to ring the bell. I removed them and
added a curses bell() call instead.

The hardest part was to make talkd work since Solaris 2.8 doesn't have a
/var/adm/utmp any more and instead only supports utmpx. I decided to use
the system functions for accessing it instead of reading the entries
directly. This can of course be changed again. I tried to implement my
changes so that they shouldn't interfer with standard utmp behaviour but I
didn't test it.

An accompanying problem arises through /dev/console handling on solaris
since the graphical login screen adds a utmpx entry for it but redirects
the output to /dev/null unless the user starts a xconsole. I therefore
changed the console searching to remember /dev/console as last resort
(e.g. if the user is logged in on text console only) but to prefer any
other device.

This again messed up libinetutils/ttymsg.h since pseudo ttys are
/dev/pts/<number> on Solaris which makes ttymsg refuse to print something
on it since it includes a /. I changed that to accept slashed but check
the final path to be a character device which seems equally secure to me.

Thanks for your great work - hope I could help a bit.
-- 
bye, Micha

Attachment: inetutils-20010209-solaris.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]