Package: ytalk
Version: 3.3.0-5
Severity: grave
Tags: patch
Justification: renders package unusable

Ytalk doesn't work when the username is > than 8 characters, and errors like 
that are appearing in the syslog when one of the user connecting has a username 
with more than 8 characters:

talkd[26809]: 127.0.0.1 (127.0.0.1): unintelligible packet


Removing the support for "old talk daemon" seems to make it work nicely:

--- ytalk-3.3.0.orig/src/socket.c
+++ ytalk-3.3.0/src/socket.c
@@ -453,13 +453,18 @@
                           0, (struct sockaddr *) & remote_daemon, 
sizeof(remote_daemon));
                if (n != sizeof(m2))
                        show_error("Warning: cannot write to new talk daemon");
-
+               /* Commented out by J. Javier Maestro:
+                * Quick hack to make ytalk work for usernames longer than 8
+                * characters. Apparently, talkd returns an error message when
+                * receiving an old talk packet and this breaks ytalk.
+               */
+               /*
                IN_PORT(remote_daemon) = talkd[otalk].port;
                n = sendto(talkd[otalk].fd, (char *) &m1, sizeof(m1),
                           0, (struct sockaddr *) & remote_daemon, 
sizeof(remote_daemon));
                if (n != sizeof(m1))
                        show_error("Warning: cannot write to old talk daemon");
-
+               */
                tv.tv_sec = 4L;
                tv.tv_usec = 0L;



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ytalk depends on:
ii  libc6        2.17-97
ii  libncurses5  5.9+20130608-1
ii  talkd        0.17-15

ytalk recommends no packages.

ytalk suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to