From owner-freebsd-hackers Thu Sep 7 20:15:11 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA18493 for hackers-outgoing; Thu, 7 Sep 1995 20:15:11 -0700 Received: from UUCP-GW.CC.UH.EDU (root@UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id UAA18487 for ; Thu, 7 Sep 1995 20:15:06 -0700 Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA25042 (5.67a/IDA-1.5 for hackers@freebsd.org); Thu, 7 Sep 1995 21:49:12 -0500 Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.9) id VAA07556 for hackers@freebsd.org; Thu, 7 Sep 1995 21:39:00 -0500 From: peter@taronga.com (Peter da Silva) Message-Id: <199509080239.VAA07556@bonkers.taronga.com> Subject: Repeat of patch to CU To: hackers@freebsd.org Date: Thu, 7 Sep 1995 21:38:59 -0500 (CDT) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1759 Sender: hackers-owner@freebsd.org Precedence: bulk This is a repeat of my patch to CU. This time relative to 2.0.5. This patch implements a "-E" option, letting you set the value of the CU escape character or eliminate escapes. *** libunix/cusub.c.orig Mon Sep 4 19:08:20 1995 --- libunix/cusub.c Thu Sep 7 20:48:15 1995 *************** *** 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) { c = cscu_escape (pbcmd, zlocalname); if (c <= 0) *** cu/cu.c.orig Mon Sep 4 19:08:18 1995 --- cu/cu.c Thu Sep 7 20:47:02 1995 *************** *** 223,228 **** --- 223,229 ---- { "mapcr", no_argument, NULL, 't' }, { "system", required_argument, NULL, 'z' }, { "config", required_argument, NULL, 'I' }, + { "escape", required_argument, NULL, 'E' }, { "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:", asCulongopts, (int *) NULL)) != EOF) { switch (iopt) *************** *** 358,363 **** --- 359,369 ---- /* Configuration file name. */ if (fsysdep_other_config (optarg)) zconfig = optarg; + break; + + case 'E': /* add "escape" for security, transparancy */ + /* Escape Character */ + zCuvar_escape = optarg; break; case 'x':