Changeset 19171 in vbox for trunk/src/VBox/HostServices/SharedFolders
- Timestamp:
- Apr 24, 2009 3:35:54 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46476
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r18593 r19171 39 39 #undef LogFlow 40 40 #define LogFlow Log 41 42 /** 43 * @todo find a better solution for supporting the execute bit for non-windows 44 * guests on windows host. Search for "0111" to find all the relevant places. 45 */ 41 46 42 47 void vbsfStripLastComponent (char *pszFullPath, uint32_t cbFullPathRoot) … … 768 773 if (RT_SUCCESS(RTPathQueryInfo (pszPath, &info, RTFSOBJATTRADD_NOTHING))) 769 774 { 775 #ifdef RT_OS_WINDOWS 776 info.fMode |= 0111; 777 #endif 770 778 pParms->Info = info; 771 779 } … … 841 849 if (RT_SUCCESS(rc)) 842 850 { 851 #ifdef RT_OS_WINDOWS 852 info.fMode |= 0111; 853 #endif 843 854 pParms->Info = info; 844 855 } … … 1038 1049 case VINF_SUCCESS: 1039 1050 { 1051 #ifdef RT_OS_WINDOWS 1052 info.fMode |= 0111; 1053 #endif 1040 1054 pParms->Info = info; 1041 1055 pParms->Result = SHFL_FILE_EXISTS; … … 1424 1438 } 1425 1439 1440 #ifdef RT_OS_WINDOWS 1441 pDirEntry->Info.fMode |= 0111; 1442 #endif 1426 1443 pSFDEntry->Info = pDirEntry->Info; 1427 1444 pSFDEntry->cucShortName = 0; … … 1531 1548 { 1532 1549 rc = RTFileQueryInfo(pHandle->file.Handle, pObjInfo, RTFSOBJATTRADD_NOTHING); 1550 #ifdef RT_OS_WINDOWS 1551 if (RT_SUCCESS(rc) && RTFS_IS_FILE(pObjInfo->Info.fMode)) 1552 pObjInfo->Info.fMode |= 0111; 1553 #endif 1533 1554 } 1534 1555 if (rc == VINF_SUCCESS) … … 1653 1674 if (rc == VINF_SUCCESS) 1654 1675 { 1676 #ifdef RT_OS_WINDOWS 1677 fileinfo.fMode |= 0111; 1678 #endif 1655 1679 *pSFDEntry = fileinfo; 1656 1680 *pcbBuffer = sizeof(RTFSOBJINFO);
Note:
See TracChangeset
for help on using the changeset viewer.