Changeset 6413 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Jan 21, 2008 2:59:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r6402 r6413 1132 1132 Log(("vbsfWrite %RX64 offset %RX64 bytes %x\n", Handle, offset, *pcbBuffer)); 1133 1133 1134 /* is the guest allowed to write to this share? */ 1135 bool fWritable; 1136 rc = vbsfMappingsQueryWritable (pClient, root, &fWritable); 1137 if (RT_FAILURE(rc) || !fWritable) 1138 return VERR_WRITE_PROTECT; 1139 1134 1140 if (*pcbBuffer == 0) 1135 1141 return VINF_SUCCESS; /** @todo correct? */ … … 1474 1480 } 1475 1481 1482 /* is the guest allowed to write to this share? */ 1483 bool fWritable; 1484 rc = vbsfMappingsQueryWritable (pClient, root, &fWritable); 1485 if (RT_FAILURE(rc) || !fWritable) 1486 return VERR_WRITE_PROTECT; 1487 1488 rc = VINF_SUCCESS; 1489 1476 1490 *pcbBuffer = 0; 1477 1491 pSFDEntry = (RTFSOBJINFO *)pBuffer; … … 1578 1592 return VERR_INVALID_PARAMETER; 1579 1593 } 1594 1595 /* is the guest allowed to write to this share? */ 1596 bool fWritable; 1597 int rc = vbsfMappingsQueryWritable (pClient, root, &fWritable); 1598 if (RT_FAILURE(rc) || !fWritable) 1599 return VERR_WRITE_PROTECT; 1600 1580 1601 if (flags & SHFL_INFO_FILE) 1581 1602 return vbsfSetFileInfo(pClient, root, Handle, flags, pcbBuffer, pBuffer);
Note:
See TracChangeset
for help on using the changeset viewer.