1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Fix bind config file read (#125)

This commit is contained in:
Karl Shea
2017-05-04 02:06:32 -05:00
committed by Neil Lathwood
parent e3dad6cfc9
commit 6fdcc91f70

View File

@@ -139,7 +139,7 @@ if ( defined( $opts{c} ) ){
my $config_file='';
if ( -f $config ){
open(my $readfh, "<", $config) or die "Can't open '".$config."'";
read($readfh , $config , 1000000);
read($readfh , $config_file , 1000000);
close($readfh);
#parse the config file and remove comments and empty lines