Great Circle Associates Majordomo-Workers
(July 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: config_parse.pl change request
From: blemoine @ dcoserv . corp . sgi . com (Brett Lemoine)
Date: Thu, 11 Jul 1996 11:16:56 -0700 (PDT)
To: majordomo-workers @ GreatCircle . COM

I'd like to see the following change made to config_parse.pl:

--- config_parse.pl.bak Mon Jul  8 11:59:57 1996
+++ config_parse.pl     Thu Jul 11 11:11:15 1996
@@ -1147,8 +1147,10 @@
          # are we generating a digest list
        $digest = 1 if $list =~ /-digest$/;
 
-       $default = eval("$default") if $default =~ s/^#!//;
-       print $@ if $@ ne "";
+       if ( $default =~ s/^#!// ) {
+               $default = eval("$default");
+               print $@ if $@ ne "";
+       }
 
        $parser = $parse_function{$key};
        return(($default eq '') ? '' : &$parser($default, $list, $key));

This is in the config'get_def subroutine.

I'm in the midst of writting a fairly comprehensive web interface to
majordomo using as much of it's facilities as possible.  The current
state of affairs requires me to undef $@ before I call get_config
due to the way the FileHandle package checks some stuff.

thanks,
bl.
-- 
//= Brett G. Lemoine =====================================================\\
|| Silicon Graphics       |  "There are two major products that come out   ||
|| Server Operations, I/S |   of Berkeley:         LSD and UNIX.           ||
|| Senior System Operator |   We don't believe this to be a coincidence."  ||
|| blemoine@sgi.com       |                         -- Jeremy S. Anderson  ||
|+------------------------+------------------------------------------------+|
\\ PGP Key Fingerprint: 68 A1 2A 2D 82 CE E9 70   5B 80 D1 11 EC F3 FB 85 //


Follow-Ups:
Indexed By Date Previous: Re: Zero byte user lists
From: pdc@magnum.virtualvin.com (Paul Close)
Next: Bug in Jason's new Approved (3 methods) patch
From: Brock Rozen <brozen@netvoyage.net>
Indexed By Thread Previous: $GID in From: field.
From: Majordomo list server <majordom@gange.intesys.it>
Next: Re: config_parse.pl change request
From: Brock Rozen <brozen@netvoyage.net>

Google
 
Search Internet Search www.greatcircle.com