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.
26 lines
790 B
Text
26 lines
790 B
Text
$NetBSD: patch-al,v 1.1 2006/10/30 03:33:59 jlam Exp $
|
|
|
|
--- unix/pipe.c.orig 2003-05-29 02:08:49.000000000 -0400
|
|
+++ unix/pipe.c
|
|
@@ -199,6 +199,7 @@ fspipe_dial (qconn, puuconf, qsys, zphon
|
|
struct ssysdep_conn *q;
|
|
int aidescs[3];
|
|
const char **pzprog;
|
|
+ const char **p;
|
|
|
|
q = (struct ssysdep_conn *) qconn->psysdep;
|
|
|
|
@@ -212,6 +213,13 @@ fspipe_dial (qconn, puuconf, qsys, zphon
|
|
return FALSE;
|
|
}
|
|
|
|
+ /* Look for a string \H and substitute the address given for this
|
|
+ system. This is useful, e.g. for generic UUCP over SSH or SSL.
|
|
+ Idea and part of the patch by Joerg Durchain. */
|
|
+ for (p=pzprog; *p; p++)
|
|
+ if (!strcmp(*p, "\\H"))
|
|
+ *p = zphone;
|
|
+
|
|
aidescs[0] = SPAWN_WRITE_PIPE;
|
|
aidescs[1] = SPAWN_READ_PIPE;
|
|
aidescs[2] = SPAWN_NULL;
|