summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-02-06 18:26:45 +0530
committerTim Smith <tsmith@chef.io>2019-03-04 09:41:59 -0800
commit2e7900bc7121a6d3248d4a56edda8b7c9a928372 (patch)
tree483d67050bc1caf43145a7c7193cd78f0ecf1469
parent98777cd43824fe4d412edde672f330f30ed40ac3 (diff)
downloadchef-2e7900bc7121a6d3248d4a56edda8b7c9a928372.tar.gz
Uniform config dir path separator
- Return canonical path for user_home dir for the config_dir. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--chef-config/lib/chef-config/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index 0046d25f78..dc01e98fa2 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -119,7 +119,7 @@ module ChefConfig
if config_file
PathHelper.dirname(PathHelper.canonical_path(config_file, false))
else
- PathHelper.join(user_home, ".chef", "")
+ PathHelper.join(PathHelper.canonical_path(user_home, false), ".chef", "")
end
end