diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-09 14:56:38 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-09 14:56:38 +0000 |
commit | 0deee2020f7e455a901ffca4d28655eb386df390 (patch) | |
tree | 857b639daeaa1c7ca00ba99f7aec7bade1673723 /lib/fileutils.rb | |
parent | e006dc674231eae818072b0da7fb5f1b68e160eb (diff) |
merge revision(s) 57640: [Backport #13214]
fileutils.rb: do not make root
* lib/fileutils.rb (FileUtils#mkdir_p): no need to make root
directory which should be exist and cannot be made with mkdir
recent Cygwin can make a directory contains a colon.
[Bug #13214]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 6662b90932..94934233df 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -202,6 +202,7 @@ module FileUtils stack.push path path = File.dirname(path) end + stack.pop # root directory should exist stack.reverse_each do |dir| begin fu_mkdir dir, mode |