Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 1995 21:38:59 -0500 (CDT)
From:      peter@taronga.com (Peter da Silva)
To:        hackers@freebsd.org
Subject:   Repeat of patch to CU
Message-ID:  <199509080239.VAA07556@bonkers.taronga.com>

next in thread | raw e-mail | index | archive | help
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':



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509080239.VAA07556>