|
0 |
Author: Rafael Diniz <rafael@rhizomatica.org>
|
|
1 |
Description:
|
|
2 |
remove ATTRIBUTE_UNUSED of the parameter uucp-org.patch uses
|
|
3 |
add the possibility to send the system name to be called in pipe command
|
|
4 |
(use \Z as place holder for the system name)
|
|
5 |
Index: uucp-1.07/unix/pipe.c
|
|
6 |
===================================================================
|
|
7 |
--- uucp-1.07.orig/unix/pipe.c 2019-08-17 23:06:47.774519770 +0200
|
|
8 |
+++ uucp-1.07/unix/pipe.c 2019-08-17 23:06:47.742519770 +0200
|
|
9 |
@@ -225,8 +225,8 @@
|
|
10 |
fspipe_dial (qconn, puuconf, qsys, zphone, qdialer, ptdialer)
|
|
11 |
struct sconnection *qconn;
|
|
12 |
pointer puuconf;
|
|
13 |
- const struct uuconf_system *qsys ATTRIBUTE_UNUSED;
|
|
14 |
- const char *zphone ATTRIBUTE_UNUSED;
|
|
15 |
+ const struct uuconf_system *qsys;
|
|
16 |
+ const char *zphone;
|
|
17 |
struct uuconf_dialer *qdialer;
|
|
18 |
enum tdialerfound *ptdialer;
|
|
19 |
{
|
|
20 |
@@ -246,12 +246,17 @@
|
|
21 |
ulog (LOG_ERROR, "No command for pipe connection");
|
|
22 |
return FALSE;
|
|
23 |
}
|
|
24 |
-
|
|
25 |
- /* Look for a string \H and replaced it by the address given for this system */
|
|
26 |
+
|
|
27 |
+ /* Look for a string \H and replace it by the address given for this system */
|
|
28 |
for (p=pzprog; *p; p++)
|
|
29 |
if (!strcmp(*p, "\\H"))
|
|
30 |
*p = zphone;
|
|
31 |
|
|
32 |
+ /* Look for a string \Z and replace by the system name to be called */
|
|
33 |
+ for (p=pzprog; *p; p++)
|
|
34 |
+ if (!strcmp(*p, "\\Z"))
|
|
35 |
+ *p = qsys->uuconf_zname;
|
|
36 |
+
|
|
37 |
aidescs[0] = SPAWN_WRITE_PIPE;
|
|
38 |
aidescs[1] = SPAWN_READ_PIPE;
|
|
39 |
aidescs[2] = SPAWN_NULL;
|