VirtualBox

Changeset 79155 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Jun 14, 2019 4:33:05 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rtFsModeFromDos: Pass desired object type when normalizing mode masks where the type is implicit (e.g. RTDirCreate). ticketref:18345 bugref:9172

Location:
trunk/src/VBox/Runtime/r3/win
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/dir-win.cpp

    r76553 r79155  
    5151     */
    5252    int rc;
    53     fMode = rtFsModeNormalize(fMode, pszPath, 0);
     53    fMode = rtFsModeNormalize(fMode, pszPath, 0, RTFS_TYPE_DIRECTORY);
    5454    if (rtFsModeIsValidPermissions(fMode))
    5555    {
  • trunk/src/VBox/Runtime/r3/win/direnum-win.cpp

    r78050 r79155  
    345345
    346346    pDirEntry->Info.Attr.fMode  = rtFsModeFromDos((pDir->Data.dwFileAttributes << RTFS_DOS_SHIFT) & RTFS_DOS_MASK_NT,
    347                                                    pszName, cchName, pDir->Data.dwReserved0);
     347                                                   pszName, cchName, pDir->Data.dwReserved0, 0);
    348348
    349349    /*
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r77681 r79155  
    10381038    RT_ZERO(*pObjInfo);
    10391039    pObjInfo->Attr.enmAdditional = enmAdditionalAttribs;
    1040     pObjInfo->Attr.fMode = rtFsModeFromDos(RTFS_DOS_NT_DEVICE, "", 0, 0);
     1040    pObjInfo->Attr.fMode = rtFsModeFromDos(RTFS_DOS_NT_DEVICE, "", 0, 0, 0);
    10411041    return VINF_SUCCESS;
    10421042#else
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