[Win32utils-devel] Fwd: File::Stat#readable? for Windows?

Daniel Berger djberg96 at gmail.com
Wed Nov 13 22:24:07 UTC 2013


Hi,

On Wed, Nov 13, 2013 at 8:05 AM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 2013/11/13 Daniel Berger <djberg96 at gmail.com>:
> > On Tue, Nov 12, 2013 at 12:52 AM, Heesob Park <phasis at gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> 2013/11/12 Daniel Berger <djberg96 at gmail.com>:
> >> > That looks perfect, though I might need some help with that one. :)
> >> >
> >> > I did find this example:
> >> >
> >> > http://blog.aaronballman.com/2011/08/how-to-check-access-rights/
> >> >
> >> I added access_check method to win32-file-stat and committed.
> >
> >
> > Do you think there's a version of world_readable? that would make sense
> for
> > Windows?
> >
> I think world_readable? can be implemented using access_check of
> GENERIC_READ with EVERYONE(S-1-1-0) SID.
> But the check is not very meaningful.


True, but I think it's the best analogue we have.

Regards,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20131113/aea923bf/attachment.html>


More information about the win32utils-devel mailing list