summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tmpdir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index 03c02fd788..18d4fb683d 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -138,7 +138,7 @@ class Dir
end
n = nil
begin
- path = File.expand_path(make_tmpname(basename, n), tmpdir)
+ path = File.join(tmpdir, make_tmpname(basename, n))
yield(path, n, *opts)
rescue Errno::EEXIST
n ||= 0