Add some comments in get_params()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-10-30 08:18:45 -07:00
parent 3973cdf0da
commit 5a3589b9a6

View File

@ -5268,8 +5268,14 @@ sub get_params( $ ) {
for ( keys %params ) {
if ( /[^\w]/ ) {
#
# Useless variable with special characters in its name
#
delete $params{$_};
} elsif ( /^(?:SHLVL|OLDPWD)$/ ) {
#
# The shell running getparams generates those
#
delete $params{$_};
} else {
unless ( $_ eq 'SHOREWALL_INIT_SCRIPT' ) {