commit 809cd1e: [Minor] Use three argument open

Anton Yuzhaninov citrin+git at citrin.ru
Wed Jul 17 08:14:06 UTC 2019


Author: Anton Yuzhaninov
Date: 2019-07-16 21:27:05 +0100
URL: https://github.com/rspamd/rspamd/commit/809cd1e03fd56a9c6fd8af69eb69619e94827e6e

[Minor] Use three argument open
Fixes tidyall check.

---
 utils/asn.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;


More information about the Commits mailing list