ruby-changes:47976
From: ko1 <ko1@a...>
Date: Mon, 2 Oct 2017 10:22:16 +0900 (JST)
Subject: [ruby-changes:47976] ko1:r60092 (trunk): catch up r60088 for DOSISH.
ko1 2017-10-02 10:22:11 +0900 (Mon, 02 Oct 2017) New Revision: 60092 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60092 Log: catch up r60088 for DOSISH. * file.c (rb_file_s_rename): src and dst are used only on DOSISH env. Modified files: trunk/file.c Index: file.c =================================================================== --- file.c (revision 60091) +++ file.c (revision 60092) @@ -2915,6 +2915,8 @@ rb_file_s_rename(VALUE klass, VALUE from https://github.com/ruby/ruby/blob/trunk/file.c#L2915 RUBY_UBF_IO, 0) < 0) { int e = errno; #if defined DOSISH + const char *src = StringValueCStr(f); + const char *dst = StringValueCStr(t); switch (e) { case EEXIST: if (chmod(dst, 0666) == 0 && -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/