Date: Fri, 17 Mar 1995 20:24:22 -0600 From: Peter da Silva <peter@bonkers.taronga.com> To: Joe Greco <jgreco@brasil.moneng.mei.com> Cc: root@io.cts.com (Morgan Davis), hackers@FreeBSD.org Subject: Re: Connecting a BBS to serial port? Message-ID: <199503180224.UAA02981@bonkers.taronga.com> In-Reply-To: Your message of "Fri, 17 Mar 95 11:24:35 CST." <9503171724.AA23717@brasil.moneng.mei.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's my patches to add a "-E" option to cu... they are relative to the Taylor CU in /usr/src/gnu/uucp/... which is the cu you should be using anyway. :-> They're for 1.1 but I'll be much surprised if 2.x has any different code. *** cu/cu.c.ORIG Sun Sep 4 01:31:30 1994 --- cu/cu.c Sun Sep 4 01:36:05 1994 *************** *** 223,228 **** --- 223,229 ---- { "mapcr", no_argument, NULL, 't' }, { "system", required_argument, NULL, 'z' }, { "config", required_argument, NULL, 'I' }, + { "escape", required_argument, NULL, 'E' }, /* PDS SEP 94 */ { "debug", required_argument, NULL, 'x' }, { "version", no_argument, NULL, 'v' }, { "help", no_argument, NULL, 1 }, *************** *** 291,297 **** } } ! while ((iopt = getopt_long (argc, argv, "a:c:dehnI:l:op:s:tvx:z:", asCulongopts, (int *) NULL)) != EOF) { switch (iopt) --- 292,298 ---- } } ! while ((iopt = getopt_long (argc, argv, "a:c:dehnI:E:l:op:s:tvx:z:", /* PDS */ asCulongopts, (int *) NULL)) != EOF) { switch (iopt) *************** *** 358,363 **** --- 359,369 ---- /* Configuration file name. */ if (fsysdep_other_config (optarg)) zconfig = optarg; + break; + + case 'E': /* PDS SEP 94 add "escape" for security, transparancy */ + /* Escape Character */ + zCuvar_escape = optarg; break; case 'x': *** libunix/cusub.c.ORIG Sun Sep 4 01:24:15 1994 --- libunix/cusub.c Sun Sep 4 01:25:37 1994 *************** *** 330,336 **** if (c <= 0) break; ! if (fstart && b == *zCuvar_escape) { c = cscu_escape (pbcmd, zlocalname); if (c <= 0) --- 330,336 ---- if (c <= 0) break; ! if (fstart && b == *zCuvar_escape && *zCuvar_escape) /* PDS SEP 94 */ { c = cscu_escape (pbcmd, zlocalname); if (c <= 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503180224.UAA02981>