freebsd-ports/lang/ruby18/files/patch-fileutils.rb
Pav Lucistnik 09a488b948 - Fix bug: FileUtils.mv() does not unlink source file when moving over
filesystem boundaries

Reported by:	Virgil Champlin <champlin@stupidog.org>
2006-01-16 01:43:29 +00:00

10 lines
313 B
Ruby

--- lib/fileutils.rb.orig Sun Nov 20 02:23:41 2005
+++ lib/fileutils.rb Mon Jan 16 02:08:47 2006
@@ -501,6 +501,7 @@
File.rename s, d
rescue Errno::EXDEV
copy_entry s, d, true
+ File.unlink s
end
rescue SystemCallError
raise unless options[:force]