From: Hugh Sasse Date: 2007-01-13T00:49:54+09:00 Subject: Re: [ ruby-Patches-7760 ] Fix for File and File::Stat to deal withbogus stat.st_size member On Sat, 13 Jan 2007, Berger, Daniel wrote: > > -----Original Message----- > > From: Hugh Sasse [mailto:hgs@dmu.ac.uk] > > Sent: Friday, January 12, 2007 3:40 AM > > To: ruby-core@ruby-lang.org > > Subject: Re: [ ruby-Patches-7760 ] Fix for File and > > File::Stat to deal withbogus stat.st_size member > > > > > > On Fri, 12 Jan 2007, noreply@rubyforge.org wrote: > > > > > irb(main):001:0> File.stat("/dev/fd0").size > > > => 9223372036854775807 > > > > > > That should return 0. This has been reported on > > sunsolve.sun.com (bug > > > 4013608), but I'm not positive if it's been patched yet, or > > > > That bug seems to relate to Sunos 4.1.4 as far as I can see. > > Heh, oops. So...it's been that way for a long time apparently. ;) But it claims to have been patched. I can't find data on this for the new versions.... > > Do you have access to any older versions of Solaris to see if they > suffer the same result? No, nothing older than 2.5.1, and I can't build ruby on that machine (too small, not enough tools). I think I stopped using SunOS 4 ages ago now. What are you trying to build this on? > > Thanks, > > Dan > > Hugh