diff --git a/plugins/ejabberd/ejabberd_scanlog/ejabberd_scanlog b/plugins/ejabberd/ejabberd_scanlog/ejabberd_scanlog index bd05c470..d196188e 100755 --- a/plugins/ejabberd/ejabberd_scanlog/ejabberd_scanlog +++ b/plugins/ejabberd/ejabberd_scanlog/ejabberd_scanlog @@ -48,7 +48,7 @@ if ARGV.first == 'reset' end new_data = '' -File.open(LOG_FILE, 'r') do |flog| +File.open(LOG_FILE, 'rb') do |flog| flog.seek(log_info[:start]) new_data = flog.read end diff --git a/plugins/network/netstat_bsd_m_/netstat_bsd_m_ b/plugins/network/netstat_bsd_m_/netstat_bsd_m_ index 3658a389..b7fffa04 100755 --- a/plugins/network/netstat_bsd_m_/netstat_bsd_m_ +++ b/plugins/network/netstat_bsd_m_/netstat_bsd_m_ @@ -92,5 +92,5 @@ when nil # fetch }.join $/ end else - warn "unrecognized argument <#{ARGV.fist}>" + warn "unrecognized argument <#{ARGV.first}>" end