Changeset 20346 in vbox
- Timestamp:
- Jun 5, 2009 4:22:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r20329 r20346 33 33 #include <iprt/string.h> 34 34 #include <iprt/uni.h> 35 #include <iprt/stream.h> 35 36 #ifdef RT_OS_DARWIN 36 37 #include <Carbon/Carbon.h> … … 1739 1740 if (pSFDEntry->Attr.fMode) 1740 1741 { 1741 rc = RTFileSetMode((RTFILE)pHandle->file.Handle, pSFDEntry->Attr.fMode); 1742 RTFMODE fMode = pSFDEntry->Attr.fMode; 1743 1744 #ifndef RT_OS_WINDOWS 1745 /* don't allow to clear the own bit, otherwise the guest wouldn't be 1746 * able to access this file anymore */ 1747 if (fMode) 1748 fMode |= RTFS_UNIX_IRUSR; 1749 #endif 1750 1751 rc = RTFileSetMode((RTFILE)pHandle->file.Handle, fMode); 1742 1752 if (rc != VINF_SUCCESS) 1743 1753 { 1744 Log(("RTFileSetMode %x failed with %Rrc\n", pSFDEntry->Attr.fMode, rc));1754 Log(("RTFileSetMode %x failed with %Rrc\n", fMode, rc)); 1745 1755 /* silent failure, because this tends to fail with e.g. windows guest & linux host */ 1746 1756 rc = VINF_SUCCESS; … … 1748 1758 } 1749 1759 } 1760 /* TODO: mode for directories */ 1750 1761 1751 1762 if (rc == VINF_SUCCESS)
Note:
See TracChangeset
for help on using the changeset viewer.