File.lstat on MS Windows should be the same as File.stat --------------------------------------------------------
Key: JRUBY-1927 URL: http://jira.codehaus.org/browse/JRUBY-1927 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.1b1 Environment: Windows XP Pro, 1.1RC1 binary Reporter: Daniel Berger There are some curious differences between the output of File.stat and File.lstat on MS Windows. This may or may not be related to JRUBY-1922. {noformat} C:\jruby\bin>jirb irb(main):003:0> File.stat("C:\\") => #<File::Stat dev=02, ino=0, mode=040777, nlink=1, uid=0, gid=0, rdev=02, size=0, blksize=0, block s=0, atime=Tue Jan 01 00:00:00 -0600 1980, mtime=Tue Jan 01 00:00:00 -0600 1980, ctime=Tue Jan 01 00 :00:00 -0600 1980, > irb(main):004:0> File.lstat("C:\\") => #<File::Stat dev=0ino=0, mode=040666, nlink=uid=-1, gid=rdev=0size=0, blksize=4096, blocks=atime= Tue Jan 08 22:26:52 -0600 2008, mtime=Tue Jan 08 22:26:52 -0600 2008, ctime=Tue Jan 08 22:26:52 -060 0 2008, > irb(main):005:0> File.stat("C:\\") == File.lstat("C:\\") => false # Whereas with MRI C:\>irb irb(main):001:0> File.stat("C:\\") => #<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2, size=0, blks ize=nil, blocks=nil, atime=Wed Dec 31 18:00:00 -0600 1969, mtime=Wed Dec 31 18:00:00 -0600 1969, ctime=Wed Dec 31 18:00:00 -0600 1969> irb(main):002:0> File.lstat("C:\\") => #<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2, size=0, blks ize=nil, blocks=nil, atime=Wed Dec 31 18:00:00 -0600 1969, mtime=Wed Dec 31 18:00:00 -0600 1969, ctime=Wed Dec 31 18:00:00 -0600 1969> irb(main):003:0> File.stat("C:\\") == File.lstat("C:\\") => true irb(main):004:0> VERSION => "1.8.6" {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email