shirkdog / pulledpork

Pulled Pork for Snort and Suricata rule management (from Google code)
GNU General Public License v2.0
419 stars 133 forks source link

Problem: IPRVersion is written to unexpected path #313

Closed jonnystorm closed 6 years ago

jonnystorm commented 6 years ago

By default, the IPRVersion file is written to /usr/local/etc/snort/rules/iplistsIPRVersion.dat, which is clearly not intended. This issue is identical to #247, which was not fixed by commit 0617788, as was thought.

The problem is in blacklist_write, where the final path is concatenated without a slash:

## write our blacklist and blacklist version file!
sub blacklist_write {
    my ($href, $path) = @_;
    my $blv   = $Config_info{'IPRVersion'} . "IPRVersion.dat";
    my $blver = 0;