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