From 1f1fc6107638e9538762af4d272db13a0859e9be Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 24 Feb 2001 13:19:13 +0000 Subject: * win32/win32.c (myrename): fix error handling. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ version.h | 4 ++-- win32/win32.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6d1595c40..ad174b802 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Feb 24 22:14:00 2001 WATANABE Hirofumi + + * win32/win32.c (myrename): fix error handling. + Sat Feb 24 13:58:48 2001 Minero Aoki * lib/net/http.rb: always close connection on request without diff --git a/version.h b/version.h index 1d4cf052f..97a1b5864 100644 --- a/version.h +++ b/version.h @@ -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 8fcb5b778..0dfe3e513 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; } -- cgit