From d5cc1c7a3fffea27abfbec3ad1faaa9daa1db584 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 6 Mar 2018 14:35:43 -0800 Subject: chef_fs fix for ruby 2.5 Signed-off-by: Lamont Granquist --- lib/chef/chef_fs/path_utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef') diff --git a/lib/chef/chef_fs/path_utils.rb b/lib/chef/chef_fs/path_utils.rb index 7b2de5e3e0..4de23f8266 100644 --- a/lib/chef/chef_fs/path_utils.rb +++ b/lib/chef/chef_fs/path_utils.rb @@ -1,6 +1,6 @@ # # Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. +# Copyright:: Copyright 2012-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -90,7 +90,7 @@ class Chef begin path = File.realpath(path) break - rescue Errno::ENOENT + rescue Errno::ENOENT, Errno::EINVAL suffix << File.basename(path) path = parent_path parent_path = File.dirname(path) -- cgit v1.2.1