aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-02 01:22:11 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-02 01:22:11 +0000
commit5dd8d5da1625cc29d3e82345b4fb34a0c2ad9b02 (patch)
tree11dddde982634157ea18736faf109e24bd16dab1
parent85b065f20bbf42e34cfe734b26dc7aa6da50c2a7 (diff)
downloadruby-5dd8d5da1625cc29d3e82345b4fb34a0c2ad9b02.tar.gz
catch up r60088 for DOSISH.
* file.c (rb_file_s_rename): src and dst are used only on DOSISH env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index b24b671bb2..d2b9cc4ca5 100644
--- a/file.c
+++ b/file.c
@@ -2915,6 +2915,8 @@ rb_file_s_rename(VALUE klass, VALUE from, VALUE to)
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 &&