[Rake-devel] small fix for safe_ln

Ludvig Omholt ludvig.omholt at it.su.se
Mon Sep 19 03:44:26 EDT 2005


I am using rake with OpenAFS. AFS does not support hard links but the
errno differs from the one used with rescue in safe_ln. The error when
trying to do hard links in AFS is the same as when trying to do hard
links between different filesystems; invalid cross-device
link. Attached is a small, mostly harmless, patch against current CVS
that fixes the issue.


Ludvig Omholt
Sektionen för IT och media
Stockholms universitet
-------------- next part --------------
Index: lib/rake.rb
RCS file: /var/cvs/rake/rake/lib/rake.rb,v
retrieving revision 1.112
diff -u -r1.112 rake.rb
--- lib/rake.rb	14 Sep 2005 04:51:29 -0000	1.112
+++ lib/rake.rb	14 Sep 2005 11:11:37 -0000
@@ -604,7 +604,7 @@
-      rescue Errno::EOPNOTSUPP
+      rescue Errno::EOPNOTSUPP, Errno::EXDEV
         LN_SUPPORTED[0] = false
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20050919/1972b2ff/attachment.bin

More information about the Rake-devel mailing list