Re: Talkd

David Mosberger-Tang (davidm@AZStarNet.com)
Sat, 17 Feb 1996 21:06:41 -0700

>>>>> On Sat, 17 Feb 1996 18:07:15 -0600 (CST), (cosc1) 95h02740 <yxc02740@Bayou.UH.EDU> said:

>> I have RedHat AXP/Linux 2.1. My talk client dies with a memory
>> violation of some kind when I try to use 'talk'. Is this a known
>> problem? Is there a known fix?

Noah> me too, don't know any fix yet, I think people still does not
Noah> have time to fix it.

For what it's worth, I just did:

rpm --rebuild /cdrom/RedHat/SRPMS/NetKit-B-0.06-5.src.rpm

and the resulting talk binary seems to work fine (notice that this is
not the latest NetKit release by RedHat---I just happened to have this
version on a CD-ROM and didn't feel like downloading 1.2MB of
sources...). I would the newer release works too---probably something
in the library fixed the segfault.

But it won't work to other (non-Alpha) machines. Since just talking
to yourself gets old after a while, I appended a patch that should fix
this, too.

>> Also, is this list archived? If so, where?

Yes, try http://www.linux.ncm.com (or see the FAQ at
http://www.azstarnet.com).

--david

---
--- usr/include/protocols/talkd.h~	Tue May 16 17:40:49 1995
+++ usr/include/protocols/talkd.h	Sat Feb 17 20:23:51 1996
@@ -62,10 +62,10 @@
 	u_char	type;		/* request type, see below */
 	u_char	answer;		/* not used */
 	u_char	pad;
-	u_long	id_num;		/* message id */
+	u_int	id_num;		/* message id */
 	struct	osockaddr addr;		/* old (4.3) style */
 	struct	osockaddr ctl_addr;	/* old (4.3) style */
-	long	pid;		/* caller's process id */
+	int	pid;		/* caller's process id */
 #define	NAME_SIZE	12
 	char	l_name[NAME_SIZE];/* caller's name */
 	char	r_name[NAME_SIZE];/* callee's name */
@@ -81,7 +81,7 @@
 	u_char	type;		/* type of request message, see below */
 	u_char	answer;		/* respose to request message, see below */
 	u_char	pad;
-	u_long	id_num;		/* message id */
+	u_int	id_num;		/* message id */
 	struct	osockaddr addr;	/* address for establishing conversation */
 } CTL_RESPONSE;
 
--- usr/include/protocols/rwhod.h~	Tue May 16 17:40:49 1995
+++ usr/include/protocols/rwhod.h	Sat Feb 17 20:24:16 1996
@@ -44,7 +44,7 @@
 struct	outmp {
 	char	out_line[8];		/* tty name */
 	char	out_name[8];		/* user id */
-	long	out_time;		/* time on */
+	int	out_time;		/* time on */
 };
 
 struct	whod {



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices