OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_main.c versions 1.22 and 1.23
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.22 -> 1.23

--- lmtp2nntp_main.c     2002/01/31 15:03:23     1.22
+++ lmtp2nntp_main.c     2002/01/31 15:09:25     1.23
@@ -450,22 +450,6 @@
     /* read in the arguments */
     while ((i = getopt(argc, argv, "C:DKP:Va:b:c:d:g:h:l:m:n:o:r:s:t:u:v")) != -1) {
         switch (i) {
-            case 'r': /*POD [B<-r> I<restrictheader>] */
-                ctx->option_restrictheader = strdup(optarg);
-                /* protect ourselfs from the substitution of backreferences.
-                 * Missing varargs would cause segfaults.  Rewrite capturing
-                 * brackets to clustering syntax. Use poor man's s///g
-                 * simulator as current str library doesn't support global
-                 * substitution */
-                while (str_parse(ctx->option_restrictheader, "s/(.*?)\\((?!\\?:)(.*)/$1(?:$2/", &cp) > 0) {
-                    free(ctx->option_restrictheader);
-                    ctx->option_restrictheader = cp;
-                }
-                if (str_parse("<>", ctx->option_restrictheader) == -1) {
-                    fprintf(stderr, "%s:Error: illegal regex \"%s\" to option -r.\n", ctx->progname, ctx->option_restrictheader);
-                    CU(ERR_EXECUTION);
-                }
-                break;
             case 's': /*POD [B<-s> I<size>] */
                 ctx->option_maxmessagesize = atoi(optarg);
                 if(ctx->option_maxmessagesize < 64) {

CVSTrac 2.0.1