summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-03-06 14:35:43 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-03-09 15:07:47 -0800
commitd5cc1c7a3fffea27abfbec3ad1faaa9daa1db584 (patch)
tree89c55814f47ccdc7e2d06b3699cd4c377b3df4e1
parentfe1b2c37e6a177ad9ee1be8ef259b7d62e1f72ed (diff)
downloadchef-d5cc1c7a3fffea27abfbec3ad1faaa9daa1db584.tar.gz
chef_fs fix for ruby 2.5
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/chef_fs/path_utils.rb4
1 files changed, 2 insertions, 2 deletions
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 (<jkeiser@chef.io>)
-# 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)