Changeset 3965 in vbox
- Timestamp:
- Aug 1, 2007 2:44:40 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23384
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r3960 r3965 159 159 160 160 static int vbsfBuildFullPath (SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pPath, 161 uint32_t cbPath, char **ppszFullPath, uint32_t *pcbFullPathRoot )161 uint32_t cbPath, char **ppszFullPath, uint32_t *pcbFullPathRoot, bool fWildCard = false) 162 162 { 163 163 int rc = VINF_SUCCESS; … … 305 305 #if 0 306 306 /* When the host file system is case sensitive and the guest expects a case insensitive fs, then problems can occur */ 307 if ( vbsfIsHostMappingCaseSensitive (root)307 if ( vbsfIsHostMappingCaseSensitive (root) 308 308 && !vbsfIsGuestMappingCaseSensitive(root)) 309 309 { 310 310 RTFSOBJINFO info; 311 char *pszWildCardComponent = NULL; 312 313 if (fWildCard) 314 { 315 /* strip off the last path component, that contains the wildcard(s) */ 316 uint32_t len = strlen(pszFullPath); 317 char *src = pszFullPath + len - 1; 318 319 while(src > pszFullPath) 320 { 321 if (*src == RTPATH_DELIMITER) 322 break; 323 src--; 324 } 325 if (*src == RTPATH_DELIMITER) 326 { 327 pszWildCardComponent = src; 328 *pszWildCardComponent = 0; 329 } 330 } 331 311 332 rc = RTPathQueryInfo(pszFullPath, &info, RTFSOBJATTRADD_NOTHING); 312 333 if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND) … … 386 407 } 387 408 } 409 if (fWildCard) 410 { 411 Assert(pszWildCardComponent); 412 *pszWildCardComponent = RTPATH_DELIMITER; 413 } 388 414 #endif 389 415 *ppszFullPath = pszFullPath; … … 1095 1121 Assert(pHandle->dir.pLastValidEntry == 0); 1096 1122 1097 rc = vbsfBuildFullPath (pClient, root, pPath, pPath->u16Size, &pszFullPath, NULL );1123 rc = vbsfBuildFullPath (pClient, root, pPath, pPath->u16Size, &pszFullPath, NULL, true); 1098 1124 1099 1125 if (VBOX_SUCCESS (rc))
Note:
See TracChangeset
for help on using the changeset viewer.