VirtualBox

Changeset 68344 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 8, 2017 5:14:57 PM (7 years ago)
Author:
vboxsync
Message:

SUPR3HardendeVerify.cpp: Skip double root slashes on UNIXy systems. Needed for darwin, see bugref:8952.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r66842 r68344  
    11911191        return supR3HardenedSetError3(VERR_SUPLIB_PATH_TOO_SHORT, pErrInfo, "The path is too short: '", pszPath, "'");
    11921192
     1193#if RTPATH_STYLE == RTPATH_STR_F_STYLE_UNIX
     1194    /*
     1195     * Skip double slashes.
     1196     */
     1197    while (RTPATH_IS_SLASH(*pszSrc))
     1198        pszSrc++;
     1199#else
    11931200    /*
    11941201     * The root slash should be alone to avoid UNC confusion.
     
    11971204        return supR3HardenedSetError3(VERR_SUPLIB_PATH_NOT_CLEAN, pErrInfo,
    11981205                                      "The path is not clean of leading double slashes: '", pszPath, "'");
     1206#endif
    11991207    /*
    12001208     * Check each component.  No parent references.
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