fixed a bug in Kernel#open when the given file was opened twice
--- MacRuby/trunk/io.c 2009-10-21 00:18:15 UTC (rev 2871)
+++ MacRuby/trunk/io.c 2009-10-21 00:38:16 UTC (rev 2872)
@@ -2296,7 +2296,6 @@
rb_f_open(VALUE klass, SEL sel, int argc, VALUE *argv)
{
VALUE io = rb_class_new_instance(argc, argv, rb_cFile);
- io = rb_file_open(io, argc, argv);
if (rb_block_given_p()) {
return rb_ensure(f_open_body, io, f_open_ensure, io);
}