aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/find.rb')
-rw-r--r--lib/find.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/find.rb b/lib/find.rb
index 12e2a5a938..16a6a26069 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -50,13 +50,7 @@ module Find
fs.sort!
fs.reverse_each {|f|
next if f == "." or f == ".."
- if File::ALT_SEPARATOR and file =~ /^(?:[\/\\]|[A-Za-z]:[\/\\]?)$/ then
- f = file + f
- elsif file == "/" then
- f = "/" + f
- else
- f = File.join(file, f)
- end
+ f = File.join(file, f)
paths.unshift f.untaint
}
end