c1009ac844
in NetBSD's src/gnu/libexec/uucp directory. Changes include: * Teaching cu(1) about hardware flow control. * Make cu(1) honor "echocheck" and "binary mode" with respect to inspecting the data stream for newlines. * Make some proper integer casts so as not to break on LP64 platforms. * Teach uucp to substitute for \H with the IP address of the system. * Avoid potential divide-by-zero errors when computing times using serial rates. * Properly initialize some variables. The main difference between this version and the one in NetBSD is the location of uucico, uuconv, and uuxqt -- the vanilla UUCP location is ${PREFIX}/sbin while the NetBSD location is /usr/libexec/uucp. Bump PKGREVISION to 1.
30 lines
932 B
Text
30 lines
932 B
Text
$NetBSD: patch-ag,v 1.1 2006/10/30 03:33:59 jlam Exp $
|
|
|
|
--- protf.c.orig 2003-05-29 02:08:45.000000000 -0400
|
|
+++ protf.c
|
|
@@ -506,8 +506,8 @@ ffprocess_data (qdaemon, pfexit, pcneed)
|
|
if (zto != zstart)
|
|
{
|
|
DEBUG_MESSAGE1 (DEBUG_PROTO,
|
|
- "ffprocess_data: Got %d bytes",
|
|
- zto - zstart);
|
|
+ "ffprocess_data: Got %ld bytes",
|
|
+ (long) (zto - zstart));
|
|
|
|
cFrec_data += zto - zstart;
|
|
if (! fgot_data (qdaemon, zstart, (size_t) (zto - zstart),
|
|
@@ -748,10 +748,10 @@ ffawait_cksum (qtrans, qdaemon, zdata, c
|
|
|
|
qtrans->precfn = NULL;
|
|
|
|
- if (! isxdigit (zdata[0])
|
|
- || ! isxdigit (zdata[1])
|
|
- || ! isxdigit (zdata[2])
|
|
- || ! isxdigit (zdata[3])
|
|
+ if (! isxdigit (BUCHAR (zdata[0]))
|
|
+ || ! isxdigit (BUCHAR (zdata[1]))
|
|
+ || ! isxdigit (BUCHAR (zdata[2]))
|
|
+ || ! isxdigit (BUCHAR (zdata[3]))
|
|
|| zdata[4] != '\0')
|
|
{
|
|
ulog (LOG_ERROR, "Bad checksum format");
|