summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjk050974 <jeremy.kimber@cerner.com>2021-01-19 08:43:49 -0600
committerjk050974 <jeremy.kimber@cerner.com>2021-01-19 08:44:01 -0600
commit33f0b9628f78b4100cfe69addad83070a34fd7f6 (patch)
treef2f9e1d9947256fb5a82f624c545c5e1e3890fb7 /lib
parentf38d8e1c9b27faf9e81a2ea63ca839d7f489f48c (diff)
downloadchef-33f0b9628f78b4100cfe69addad83070a34fd7f6.tar.gz
undo pathhelper modifications
Signed-off-by: jk050974 <jeremy.kimber@cerner.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/util/backup.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/util/backup.rb b/lib/chef/util/backup.rb
index 7f8c4e2167..e739488fb9 100644
--- a/lib/chef/util/backup.rb
+++ b/lib/chef/util/backup.rb
@@ -64,7 +64,7 @@ class Chef
end
def backup_path
- @backup_path ||= PathHelper.cleanpath(::File.join(prefix, backup_filename))
+ @backup_path ||= ::File.join(prefix, backup_filename)
end
def do_backup
@@ -83,7 +83,7 @@ class Chef
fn = Regexp.escape(::File.basename(path))
Dir.entries(::File.dirname(backup_path)).select do |f|
!!(f =~ /\A#{fn}.chef-[0-9.]*\B/)
- end.map { |f| PathHelper.cleanpath(::File.join(::File.dirname(backup_path), f)) }
+ end.map { |f| ::File.join(::File.dirname(backup_path), f) }
end
def sorted_backup_files