From 6093111e1d40b4ade202d690491eaf72f125c0bd Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 15 May 2005 15:32:35 +0000 Subject: * lib/pathname.rb (Pathname#unlink): use SystemCallError instead of Errno::EISDIR because EISDIR is not portable. [ruby-core:5001] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/pathname.rb b/lib/pathname.rb index bac540230..b701a0651 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 -- cgit