<commit_before># gentoo-linux-lib.pl
# Deal with gentoo's IPtables save file

# check_iptables()
# Returns an error message if something is wrong with iptables on this system
sub check_iptables
{
if (!-r "/etc/init.d/iptables") {
	return &text('gentoo_escript', "<tt>/etc/init.d/iptables</tt>");
	}
return undef;
}

local %iptconf;
&read_env_file("/etc/conf.d/iptables", \%iptconf);
$iptables_save_file = $iptconf{'IPTABLES_SAVE'};

# apply_iptables()
# Applies the current iptables configuration from the save file
sub apply_iptables
{
local $out = &backquote_logged("cd / ; /etc/init.d/iptables restart 2>&1");
return $? ? "<pre>$out</pre>" : undef;
}

1;
<commit_msg>Use reload on Gentoo, to avoid bug 1857488<commit_after># gentoo-linux-lib.pl
# Deal with gentoo's IPtables save file

# check_iptables()
# Returns an error message if something is wrong with iptables on this system
sub check_iptables
{
if (!-r "/etc/init.d/iptables") {
	return &text('gentoo_escript', "<tt>/etc/init.d/iptables</tt>");
	}
return undef;
}

local %iptconf;
&read_env_file("/etc/conf.d/iptables", \%iptconf);
$iptables_save_file = $iptconf{'IPTABLES_SAVE'};

# apply_iptables()
# Applies the current iptables configuration from the save file
sub apply_iptables
{
local $out = &backquote_logged("cd / ; /etc/init.d/iptables reload 2>&1");
return $? ? "<pre>$out</pre>" : undef;
}

1;

{'fraction_non_alphanumeric': 0.15423976608187134, 'fraction_numerical': 0.009502923976608187, 'mean_word_length': 5.111607142857143, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5974274', 'n_tokens_mistral': 517, 'n_tokens_neox': 497, 'n_words': 127}