diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-02 01:22:11 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-02 01:22:11 +0000 |
commit | d0566062f97e0df9637fd78f5c6eef7f5e57991f (patch) | |
tree | 11dddde982634157ea18736faf109e24bd16dab1 /file.c | |
parent | 6c29f232a733228507a39fbc9f30b89ee960b165 (diff) |
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
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 && |