diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-16 08:42:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-16 08:42:22 +0000 |
commit | 3261cfd88172a0ab86dcdffd4a8b0b5604970146 (patch) | |
tree | 31ae7981693e4a11c5e4c031e1c0f6cd553893d7 /lib/fileutils.rb | |
parent | a17384301bc06aa9b62c36fe337fdacfbaf97b42 (diff) |
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/trunk@57640 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 660680f967..b24d6f4dcb 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -201,6 +201,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 |