Changeset 25292 in vbox for trunk/src/VBox
- Timestamp:
- Dec 10, 2009 10:29:57 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55839
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r24887 r25292 651 651 } 652 652 653 while ((rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING )) != VERR_NO_MORE_FILES)653 while ((rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK)) != VERR_NO_MORE_FILES) 654 654 { 655 655 RTLDRMOD hPlugin = NIL_RTLDRMOD; … … 664 664 pPluginDirEntry = (PRTDIRENTRYEX)RTMemAllocZ(cbPluginDirEntry); 665 665 /* Retry. */ 666 rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING );666 rc = RTDirReadEx(pPluginDir, pPluginDirEntry, &cbPluginDirEntry, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK); 667 667 if (RT_FAILURE(rc)) 668 668 break; -
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
r18460 r25292 126 126 } 127 127 128 int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs) 129 { 128 int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) 129 { 130 NOREF(fFlags); 130 131 switch(iDirList) 131 132 { … … 229 230 size_t cbDirEntrySize = cbDirEntry; 230 231 231 rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING );232 rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK); 232 233 if (rc == VERR_NO_MORE_FILES) 233 234 break; -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r24374 r25292 143 143 size_t cbDirEntrySize = cbDirEntry; 144 144 145 rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING );145 rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK); 146 146 if (rc == VERR_NO_MORE_FILES) 147 147 break; … … 1532 1532 pDirEntry = pDirEntryOrg; 1533 1533 1534 rc = RTDirReadEx(DirHandle, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING );1534 rc = RTDirReadEx(DirHandle, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK); 1535 1535 if (rc == VERR_NO_MORE_FILES) 1536 1536 { -
trunk/src/VBox/Runtime/r3/linux/sysfs.cpp
r23349 r25292 402 402 { 403 403 RTDIRENTRYEX Entry; 404 rc = RTDirReadEx(pDir, &Entry, NULL, RTFSOBJATTRADD_UNIX );404 rc = RTDirReadEx(pDir, &Entry, NULL, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK); 405 405 if (RT_FAILURE(rc)) 406 406 { … … 413 413 break; 414 414 } 415 if (RTFS_IS_SYMLINK(Entry.Info.Attr.fMode)) /* paranoia */415 if (RTFS_IS_SYMLINK(Entry.Info.Attr.fMode)) /* paranoia. @todo RTDirReadEx now returns symlinks, see also #if 1 below. */ 416 416 continue; 417 417 -
trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
r21672 r25292 389 389 390 390 391 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs )391 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) 392 392 { 393 393 /* … … 401 401 ("Invalid enmAdditionalAttribs=%p\n", enmAdditionalAttribs), 402 402 VERR_INVALID_PARAMETER); 403 AssertMsgReturn(RTPATH_F_IS_VALID(fFlags, 0), ("%#x\n", fFlags), VERR_INVALID_PARAMETER); 403 404 size_t cbDirEntry = sizeof(*pDirEntry); 404 405 if (pcbDirEntry) … … 448 449 memcpy(pszNamePath, pDir->pszPath, pDir->cchPath); 449 450 memcpy(pszNamePath + pDir->cchPath, pszName, cchName + 1); 450 rc = RTPathQueryInfo (pszNamePath, &pDirEntry->Info, enmAdditionalAttribs);451 rc = RTPathQueryInfoEx(pszNamePath, &pDirEntry->Info, enmAdditionalAttribs, fFlags); 451 452 } 452 453 else -
trunk/src/VBox/Runtime/r3/win/dir-win.cpp
r23298 r25292 310 310 311 311 312 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs) 313 { 312 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) 313 { 314 /** @todo Symlinks: Find[First|Next]FileW will return info about 315 the link, so RTPATH_F_FOLLOW_LINK is not handled correctly. */ 314 316 /* 315 317 * Validate input. … … 331 333 return VERR_INVALID_PARAMETER; 332 334 } 335 AssertMsgReturn(RTPATH_F_IS_VALID(fFlags, 0), ("%#x\n", fFlags), VERR_INVALID_PARAMETER); 333 336 size_t cbDirEntry = sizeof(*pDirEntry); 334 337 if (pcbDirEntry) -
trunk/src/VBox/Runtime/testcase/tstDir.cpp
r14831 r25292 33 33 #include <iprt/stream.h> 34 34 #include <iprt/err.h> 35 #include <iprt/path.h> 35 36 //#include <iprt/ 36 37 … … 106 107 { 107 108 RTDIRENTRYEX DirEntry; 108 rc = RTDirReadEx(pDir, &DirEntry, NULL, RTFSOBJATTRADD_UNIX );109 rc = RTDirReadEx(pDir, &DirEntry, NULL, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK); 109 110 if (RT_FAILURE(rc)) 110 111 break;
Note:
See TracChangeset
for help on using the changeset viewer.