Hi,

"daz" <dooby / d10.karoo.co.uk> writes:

> I'm getting the error with every bcc32 Ruby
> (including ones which installed without a problem).
> 
> 
> C:\WINDOWS>D:\ruby\SOURCE_CODE\ruby-1.8.0-2003.06.20\bccwin32\ruby.exe
>  -v -e 'File.utime( Time.now, Time.now, "foo.txt" )'
> ruby 1.8.0 (2003-06-20) [i386-bccwin32]
> -e:1: [BUG] rb_sys_fail() - errno == 0
> ruby 1.8.0 (2003-06-20) [i386-bccwin32]

Hmm, try this patch:

Index: win32/win32.c
===================================================================
RCS file: /src/ruby/win32/win32.c,v
retrieving revision 1.93
diff -u -1 -r1.93 win32.c
--- win32/win32.c	1 Aug 2003 06:54:28 -0000	1.93
+++ win32/win32.c	2 Aug 2003 10:45:28 -0000
@@ -3190,5 +3190,2 @@
     }
-    if (!(stat.st_mode & S_IFDIR) || IsWin95()) {
-	return utime(path, times);
-    }
 

-- 
eban