Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 77edd9096bb0c75db8ea43acc59cf0dc > files > 1

uucp-1.07-6mdv2009.0.src.rpm

--- 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;