blob: ca2e4e400d9bb28dcdd3235db35acc1025253764 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$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;
|