ruby-changes:55005
From: hsbt <ko1@a...>
Date: Mon, 11 Mar 2019 18:52:35 +0900 (JST)
Subject: [ruby-changes:55005] hsbt:r67212 (trunk): fall back to copy + unlink on EPERM
hsbt 2019-03-11 18:52:31 +0900 (Mon, 11 Mar 2019) New Revision: 67212 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67212 Log: fall back to copy + unlink on EPERM [Feature #15415][ruby-core:90536] Co-authored-by: Eric Wong <normalperson@y...> Modified files: trunk/lib/fileutils.rb Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 67211) +++ lib/fileutils.rb (revision 67212) @@ -527,7 +527,8 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L527 end begin File.rename s, d - rescue Errno::EXDEV + rescue Errno::EXDEV, + Errno::EPERM # move from unencrypted to encrypted dir (ext4) copy_entry s, d, true if secure remove_entry_secure s, force -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/