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

Daniel Berger djberg96 at gmail.com
Sat Nov 16 13:17:42 UTC 2013


On Wed, Nov 13, 2013 at 10:33 PM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 2013/11/14 Daniel Berger <djberg96 at gmail.com>:
> > 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.
> >
> I added implementation of world_readable? and world_writable? and
> committed.


Excellent, thanks!

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


More information about the win32utils-devel mailing list