VirtualBox

Changeset 70430 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 2, 2018 3:08:02 PM (7 years ago)
Author:
vboxsync
Message:

RTNtPathOpenDirEx: more access fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/nt/pathint-nt.cpp

    r70428 r70430  
    10201020            if (fDesiredAccess & (GENERIC_WRITE | STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA))
    10211021                fObjDesiredAccess |= DIRECTORY_CREATE_OBJECT | DIRECTORY_CREATE_OBJECT | DIRECTORY_CREATE_SUBDIRECTORY;
    1022             if (   (fDesiredAccess & (FILE_LIST_DIRECTORY | FILE_GENERIC_READ | GENERIC_READ | STANDARD_RIGHTS_READ))
     1022
     1023            if (   (fDesiredAccess & (GENERIC_READ | STANDARD_RIGHTS_READ | FILE_LIST_DIRECTORY))
    10231024                || !fObjDesiredAccess)
    1024                 fObjDesiredAccess |= DIRECTORY_QUERY | FILE_LIST_DIRECTORY;
     1025                fObjDesiredAccess |= DIRECTORY_QUERY;
     1026
     1027            if (fDesiredAccess & FILE_TRAVERSE)
     1028                fObjDesiredAccess |= DIRECTORY_TRAVERSE;
    10251029        }
    10261030
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette