mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
bugfix: catch lstat errors on local backend
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
ef9b299319
commit
7f19111b1b
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module Vulcano::Backends
|
||||||
|
|
||||||
begin
|
begin
|
||||||
file_stat = ::File.lstat(@path)
|
file_stat = ::File.lstat(@path)
|
||||||
rescue RuntimeError => _
|
rescue StandardError => err
|
||||||
return @stat = {}
|
return @stat = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue