From a25d3e8faef3f0a8c1eb9ec138b106b877b26098 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Thu, 27 Oct 2016 13:49:06 +0200 Subject: [PATCH] overwrite exec for inetd because respec its is executing `exec` Signed-off-by: Christoph Hartmann --- lib/resources/inetd_conf.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/resources/inetd_conf.rb b/lib/resources/inetd_conf.rb index e34d9b9b3..ba123a554 100644 --- a/lib/resources/inetd_conf.rb +++ b/lib/resources/inetd_conf.rb @@ -22,6 +22,12 @@ module Inspec::Resources @conf_path = path || '/etc/inetd.conf' end + # overwrite exec to ensure it works with its + # TODO: this needs to be fixed in RSpec + def exec + read_params['exec'] + end + def method_missing(name) read_params[name.to_s] end