diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-24 13:19:13 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-24 13:19:13 +0000 |
commit | 9ce5d1f0f5d1c87406ba644c5f2662a6a1b843b3 (patch) | |
tree | 315287f442c113709401747e3ed4bd6de05e9dd3 | |
parent | b1cd5105d41ef468236236d8361c782dcbe5e422 (diff) |
* win32/win32.c (myrename): fix error handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | version.h | 4 | ||||
-rw-r--r-- | win32/win32.c | 2 |
3 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sat Feb 24 22:14:00 2001 WATANABE Hirofumi <eban@ruby-lang.org> + + * win32/win32.c (myrename): fix error handling. + Sat Feb 24 13:58:48 2001 Minero Aoki <aamine@dp.u-netsurf.ne.jp> * lib/net/http.rb: always close connection on request without @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.7.0" -#define RUBY_RELEASE_DATE "2001-02-20" +#define RUBY_RELEASE_DATE "2001-02-24" #define RUBY_VERSION_CODE 170 -#define RUBY_RELEASE_CODE 20010220 +#define RUBY_RELEASE_CODE 20010224 diff --git a/win32/win32.c b/win32/win32.c index 8fcb5b7781..0dfe3e513c 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2615,7 +2615,7 @@ myrename(const char *oldpath, const char *newpath) newatts = GetFileAttributes(newpath); if (oldatts == -1) { - printf("file to move doesn't exist"); + errno = GetLastError(); return -1; } |