mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
7bb7767dae
* Add nil check for sshd config file This fixes #1778. There was a issue where if the user did not have read permissions on /etc/ssh/sshd_config it would error out on the empty? check. The fix here is to also look for nil on the file content. Along with this I refactored the inspec file empty? check as it does not exist and was also erroring during my testing. Signed-off-by: Jared Quick <jquick@chef.io> * Add emptyfile test object and refactor tests Signed-off-by: Jared Quick <jquick@chef.io>
0 lines
Text
0 lines
Text