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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user