From f56894d973720ad370e2eb064d4f00daa1787fe8 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Mon, 1 Jun 2015 13:28:59 +0300 Subject: [PATCH] Added permission rescue for iptable #2348 --- lib/iptable.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/iptable.rb b/lib/iptable.rb index 54fba393d..b40e71055 100644 --- a/lib/iptable.rb +++ b/lib/iptable.rb @@ -8,6 +8,8 @@ module Iptable end rescue Errno::ENOENT => e logger.error "ERROR: cannot open #{counter_proc}: #{e}" + rescue Errno::EACCES => e + logger.error "ERROR: no permission #{counter_proc}: #{e}" rescue IOError => e logger.error "ERROR: cannot write #{ip} to #{counter_proc}: #{e}" end