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

Heesob Park phasis at gmail.com
Thu Nov 14 05:33:42 UTC 2013


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.

Regards,
Park Heesob


More information about the win32utils-devel mailing list