VirtualBox

Changeset 75457 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Nov 14, 2018 6:01:19 PM (6 years ago)
Author:
vboxsync
Message:

VBoxServiceAutoMount.cpp: Allow D:/unix/mnt/point. bugref:3544

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r75451 r75457  
    15741574#if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS)
    15751575    /*
    1576      * Drive letter based:
     1576     * Drive letter based.  We only care about the first two characters
     1577     * and ignore the rest (see further down).
    15771578     */
    15781579    char chNextLetter = 'Z';
    1579     if (RT_C_IS_UPPER(pszMntPt[0]) && pszMntPt[1] == ':')
     1580    if (RT_C_IS_ALPHA(pszMntPt[0]) && pszMntPt[1] == ':')
    15801581        szActualMountPoint[0] = RT_C_TO_UPPER(pszMntPt[0]);
    15811582    else if (!fAutoMntPt)
     
    16031604     * Path based #1: Host specified mount point.
    16041605     */
     1606
     1607    /* Skip DOS drive letter if there is a UNIX mount point path following it: */
     1608    if (   pszMntPt[0] != '/'
     1609        && pszMntPt[0] != '\0'
     1610        && pszMntPt[1] == ':'
     1611        && pszMntPt[2] == '/')
     1612        pszMntPt += 2;
     1613
     1614    /* Try specified mount point if it starts with a UNIX slash: */
    16051615    int rc = VERR_ACCESS_DENIED;
    16061616    if (*pszMntPt == '/')
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