From 74842faf64da62deac21ff07d5e0b3882c097e22 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Aug 2015 16:05:39 +0000 Subject: [PATCH] fileutils.rb: fix rename_cannot_overwrite_file * lib/fileutils.rb (rename_cannot_overwrite_file): File.rename on cygwin and mswin/mingw can overwrite the destination file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/fileutils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 932776c847..9aa4036338 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -547,7 +547,7 @@ module FileUtils OPT_TABLE['move'] = [:force, :noop, :verbose, :secure] def rename_cannot_overwrite_file? #:nodoc: - /cygwin|mswin|mingw|bccwin|emx/ =~ RUBY_PLATFORM + /emx/ =~ RUBY_PLATFORM end private_module_function :rename_cannot_overwrite_file?