VirtualBox

Changeset 79468 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Jul 2, 2019 3:17:18 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/RTDirRemove/posix: Ignore trailing slash when statting final component to check whether to return VERR_NOT_A_DIRECTORY or VERR_PATH_NOT_FOUND. [build fix] bugref:9172

File:
1 edited

Legend:

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

    r79467 r79468  
    185185                if (cch > 2 && pszNativePath[cch - 1] == '/')
    186186                {
    187                     pszStat = pszFree = RTMemTmpAlloc(cch);
     187                    pszStat = pszFree = (char *)RTMemTmpAlloc(cch);
    188188                    memcpy(pszFree, pszNativePath, cch);
    189189                    do
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