aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2019-07-16 21:27:05 +0100
committerAnton Yuzhaninov <citrin+git@citrin.ru>2019-07-16 21:27:05 +0100
commit809cd1e03fd56a9c6fd8af69eb69619e94827e6e (patch)
tree21d7037ac4bb8d708fcddc5c7a3ec6b561ad7a6a /utils
parent9a938a1e915e54861543e4aa3c8723bcbf7325c6 (diff)
downloadrspamd-809cd1e03fd56a9c6fd8af69eb69619e94827e6e.tar.gz
rspamd-809cd1e03fd56a9c6fd8af69eb69619e94827e6e.zip
[Minor] Use three argument open
Fixes tidyall check.
Diffstat (limited to 'utils')
-rw-r--r--utils/asn.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/asn.pl b/utils/asn.pl
index 0854ae5f7..d78277459 100644
--- a/utils/asn.pl
+++ b/utils/asn.pl
@@ -145,7 +145,7 @@ foreach my $u ( @{ $config{'bgp_sources'} } ) {
F_ORIGIN => 7,
};
- open(my $bgpd, "bgpdump -v -M $fname |") or die "can't start bgpdump: $!";
+ open(my $bgpd, '-|', "bgpdump -v -M $fname") or die "can't start bgpdump: $!";
while (<$bgpd>) {
chomp;