From: Eric Wong Date: 2017-10-04T17:05:04+00:00 Subject: [ruby-core:83108] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?}) Nobuyoshi Nakada wrote: > On 2017/10/04 15:55, Eric Wong wrote: > > Oops, not intentional. On the other hand, does it hurt? > > I don't think it hurtful, not sure if it is useful though. > > ``` > $ ./ruby -v -e 'p File.setuid?(STDIN)' < /usr/bin/at > ruby 2.5.0dev (2017-10-04 trunk 60116) [x86_64-darwin15] > true > ``` I think it might be useful to avoid heap allocations for File::Stat objects (but not syscalls...). > > I can write tests + NEWS entry for accidental new feature :) > > And rdoc? Of course :> Unsubscribe: