about summary refs log tree commit homepage
path: root/lib/rainbows/rev.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev.rb')
-rw-r--r--lib/rainbows/rev.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb
index 89f893a..e726ad2 100644
--- a/lib/rainbows/rev.rb
+++ b/lib/rainbows/rev.rb
@@ -118,7 +118,7 @@ module Rainbows
         # here since we can't get here without checking to_path first
         io = body.to_io if body.respond_to?(:to_io)
         io ||= ::IO.new($1.to_i) if body.to_path =~ %r{\A/dev/fd/(\d+)\z}
-        io ||= File.open(File.expand_path(body.to_path), 'rb')
+        io ||= File.open(body.to_path, 'rb')
         st = io.stat
 
         if st.socket? || st.pipe?