diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-27 16:57:39 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-27 16:57:39 +0000 |
commit | 0dc5e45028fdeeac5ae507d95f3616e9e74e7fa7 (patch) | |
tree | 888eeaf3ed66d63ce2f9a368fc78b06889dd1d10 /lib | |
parent | e3a295cd5098b880f20ccf3a75e0218adcc34fbe (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_3@58180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 748ebd7637..bc9e959fab 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -222,6 +222,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, options[:mode] |