Package: ytalk
Version: 3.3.0-3
Severity: normal
ytalk makes it possible to log everything that one of the participants
writes. It first dumps the current content of the screen into the log and
then writes everything both to the screen and the log. Except that if I
try to log what *I* am saying, it only does the first part and the log is
not updated when I keep writing.
I believe the following lines fix the problem:
--- ../../ytalk-3.3.0/src/comm.c 2005-01-31 19:52:28.000000000 +0100
+++ ytalk-3.3.0/src/comm.c 2006-07-14 18:32:56.000000000 +0200
@@ -1361,6 +1361,12 @@
*n = c[j];
}
j = (n - nbuf);
+ if (me->output_fd > 0)
+ if (write(me->output_fd, nbuf,
(size_t)j) <= 0) {
+ show_error("write to user
output file failed");
+ close(me->output_fd);
+ me->output_fd = 0;
+ }
show_input(me, nbuf, j);
send_users(user, c, i, nbuf, j);
}
Note: this is taken from a larger patch I had written to automatically
log all conversations, but the larger patch is not good enough for me to
publish it.
-- System Information:
Debian Release: lenny/sid
APT prefers stable
APT policy: (500, 'stable'), (50, 'testing'), (10, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages ytalk depends on:
ii libc6 2.7-3 GNU C Library: Shared libraries
ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand
ii talkd 0.17-13 Remote user communication server
ytalk recommends no packages.
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]