VirtualBox

Changeset 25292 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Dec 10, 2009 10:29:57 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55839
Message:

RTDirReadEx parameter to resolve symlinks.

Location:
trunk/src/VBox/HostServices/SharedFolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp

    r18460 r25292  
    126126}
    127127
    128 int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs)
    129 {
     128int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags)
     129{
     130    NOREF(fFlags);
    130131    switch(iDirList)
    131132    {
     
    229230        size_t cbDirEntrySize = cbDirEntry;
    230231
    231         rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING);
     232        rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    232233        if (rc == VERR_NO_MORE_FILES)
    233234            break;
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r24374 r25292  
    143143        size_t cbDirEntrySize = cbDirEntry;
    144144
    145         rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING);
     145        rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    146146        if (rc == VERR_NO_MORE_FILES)
    147147            break;
     
    15321532            pDirEntry = pDirEntryOrg;
    15331533
    1534             rc = RTDirReadEx(DirHandle, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING);
     1534            rc = RTDirReadEx(DirHandle, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    15351535            if (rc == VERR_NO_MORE_FILES)
    15361536            {
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