VirtualBox

Changeset 79293 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 23, 2019 2:31:54 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rtFsModeFromUnix: Don't mark the special '.' and '..' entries as hidden. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/fs.cpp

    r79155 r79293  
    136136    {
    137137        pszName = RTPathFilename(pszName);
    138         if (pszName && *pszName == '.')
     138        if (   pszName
     139            && pszName[0] == '.'
     140            && pszName[1] != '\0' /* exclude "." */
     141            && (pszName[1] != '.' || pszName[2] != '\0')) /* exclude ".." */
    139142            fMode |= RTFS_DOS_HIDDEN;
    140143    }
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