develooper Front page | perl.perl5.porters | Postings from June 2019

Re: [perl #133754] Test failures on Windows with 8.3 filenamesdisabled

Thread Previous | Thread Next
From:
Richard Leach
Date:
June 9, 2019 22:04
Subject:
Re: [perl #133754] Test failures on Windows with 8.3 filenamesdisabled
Message ID:
CADWSe2cPTeBdpObE5Yo8NPc6ogR-RtXgOdGYK7RgX8XWYMWSig@mail.gmail.com
On Fri, May 31, 2019 at 8:48 PM Steve Hay via RT
<perlbug-followup@perl.org> wrote:
> (3) would be useful to decide which test to perform in GetShortPathName.t (i.e. do the current test if 8.3 is supported, change to the simplified test in wchristian's patch if not).
> (2) would be needed for the other failing tests if 8.3 is not supported (or perhaps conditionally change the test being done, like in (1), rather than skipping completely?).
> (1) has a useful documentation update that ought to go in either way.

Unsatisfactory results here. I've got XS code that allows elevated
users to create a handle to (e.g.) \\.\c: and pass that handle
DeviceIoControl() in order to retrieve
FILE_FS_PERSISTENT_VOLUME_INFORMATION.

Doesn't work for non-elevated users though. Via WinObj, EVERYONE has:
* the QUERY STATE permissions on (e.g.) the C: symbolic link.
* READ permissions on the \Device\HarddiskVolume{X} object

But although that seems like it should be sufficient, it isn't, and
normal users can't create the necessary handle. I'll play a little
more, but it's looking like this won't be a viable approach.

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133754

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About