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

Heesob Park phasis at gmail.com
Wed Nov 13 15:05:29 UTC 2013


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.

Regards,
Park Heesob


More information about the win32utils-devel mailing list