From: kubo@... Date: 2017-12-12T12:22:37+00:00 Subject: [ruby-core:84209] [Ruby trunk Feature#14169] PATCH: File.lstat(filename).ino on Windows. Issue #14169 has been reported by kubo (Takehiro Kubo). ---------------------------------------- Feature #14169: PATCH: File.lstat(filename).ino on Windows. https://bugs.ruby-lang.org/issues/14169 * Author: kubo (Takehiro Kubo) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- On Unix, the return values of File.stat(filename) and File.lstat(filename) are same when the file isn't a symbolic link. However they are different on Windows. File.lstat(filename).ino is always zero. The attached patch fixes File.lstat(filename).ino to return same value with File.stat(filename).ino. Before the patch, File.stat() and File.lstat() calls winnt_stat() and winnt_lstat() in win32.c respectively. After the patch, (1) winnt_lstat() is deleted, (2) `lstat` argument is added to winnt_stat() and (3) reparse point handling, which was in winnt_lstat(), is added to winnt_stat(). As far as I checked, it works fine for junctions and symbolic links as before. ---Files-------------------------------- file_lstat_ino.patch (6.79 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: