summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkloczek2002-10-04 09:02:15 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit502997e98d6ad61bcd98f5972a418ab81722332b (patch)
treebd5e430b00abc9d379c15f97c04d812a8d809467
parent5f3cdb8b8fffb8de9c058a9ec137281454ed5952 (diff)
downloaduucp-502997e98d6ad61bcd98f5972a418ab81722332b.zip
uucp-502997e98d6ad61bcd98f5972a418ab81722332b.tar.gz
- fix to deny to use address in pipe ports (patch from RH).
Changed files: uucp-pipe.patch -> 1.1
-rw-r--r--uucp-pipe.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/uucp-pipe.patch b/uucp-pipe.patch
new file mode 100644
index 0000000..872a771
--- /dev/null
+++ b/uucp-pipe.patch
@@ -0,0 +1,22 @@
+--- uucp-1.06.1/unix/pipe.c.orig Mon Oct 18 21:31:14 1999
++++ uucp-1.06.1/unix/pipe.c Mon Oct 18 21:46:07 1999
+@@ -199,6 +199,7 @@
+ struct ssysdep_conn *q;
+ int aidescs[3];
+ const char **pzprog;
++ char **p;
+
+ q = (struct ssysdep_conn *) qconn->psysdep;
+
+@@ -211,6 +212,11 @@
+ ulog (LOG_ERROR, "No command for pipe connection");
+ return FALSE;
+ }
++
++ /* Look for a string \H and replaced it by the address given for this system */
++ for (p=pzprog; *p; p++)
++ if (!strcmp(*p, "\\H"))
++ *p = zphone;
+
+ aidescs[0] = SPAWN_WRITE_PIPE;
+ aidescs[1] = SPAWN_READ_PIPE;