From fa3164fb1b01e1542e5c03573d0e235e3f7076a9 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 5 Jun 2012 12:51:16 -0700 Subject: [PATCH] Re-enable single-line embedded SHELL and PERL Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index d24468409..58b0ce8fa 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2311,13 +2311,13 @@ sub read_a_line($) { # Must check for shell/perl before doing variable expansion # if ( $options & EMBEDDED_ENABLED ) { - if ( $currentline =~ s/^\s*\??(BEGIN\s+)?SHELL\s*;?// ) { + if ( $currentline =~ s/^\s*\??(BEGIN\s+)SHELL\s*;?// || $currentline =~ s/^\s*\??SHELL\s*// ) { handle_first_entry if $first_entry; embedded_shell( $1 ); next; } - if ( $currentline =~ s/^\s*\??(BEGIN\s+)?PERL\s*\;?// ) { + if ( $currentline =~ s/^\s*\??(BEGIN\s+)PERL\s*;?// || $currentline =~ s/^\s*\??PERL\s*// ) { handle_first_entry if $first_entry; embedded_perl( $1 ); next;