summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-15 15:32:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-15 15:32:35 +0000
commitbe2210bbbdccabc03c6bb6542fd1798997ced7e9 (patch)
tree177b39f44b60c770ca00b8d7f630efe9a20ba00d /lib
parent381751042c924cf8caea4842abe38fd348dafb05 (diff)
* lib/pathname.rb (Pathname#unlink): use SystemCallError instead of
Errno::EISDIR because EISDIR is not portable. [ruby-core:5001] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index bac540230f..b701a06519 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -862,7 +862,7 @@ class Pathname # * mixed *
def unlink()
begin
File.unlink @path
- rescue Errno::EISDIR
+ rescue SystemCallError
Dir.unlink @path
end
end