summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 65b4bc6..1b2a889 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -118,7 +118,7 @@ class Tempfile < DelegateClass(File)
@@cleanlist.delete(@tmpname)
@data = @tmpname = nil
ObjectSpace.undefine_finalizer(self)
- rescue Errno::EACCESS
+ rescue Errno::EACCES
# may not be able to unlink on Windows; just ignore
end
end