VirtualBox

Changeset 6414 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jan 21, 2008 3:34:38 PM (17 years ago)
Author:
vboxsync
Message:

Removed checks if writing to a shared folder is allowed from 2 static functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r6413 r6414  
    13831383}
    13841384
    1385 int vbsfSetFileInfo(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer)
     1385static int vbsfSetFileInfo(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer)
    13861386{
    13871387    SHFLFILEHANDLE *pHandle = (SHFLFILEHANDLE *)vbsfQueryHandle(Handle, SHFL_HF_TYPE_DIR|SHFL_HF_TYPE_FILE);
     
    13941394        return VERR_INVALID_PARAMETER;
    13951395    }
    1396 
    1397     /* is the guest allowed to write to this share? */
    1398     bool fWritable;
    1399     rc = vbsfMappingsQueryWritable (pClient, root, &fWritable);
    1400     if (RT_FAILURE(rc) || !fWritable)
    1401         return VERR_WRITE_PROTECT;
    14021396
    14031397    *pcbBuffer  = 0;
     
    14681462
    14691463
    1470 int vbsfSetEndOfFile(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer)
     1464static int vbsfSetEndOfFile(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer)
    14711465{
    14721466    SHFLFILEHANDLE *pHandle = (SHFLFILEHANDLE *)vbsfQueryHandle(Handle, SHFL_HF_TYPE_FILE);
     
    14791473        return VERR_INVALID_PARAMETER;
    14801474    }
    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;
    14891475
    14901476    *pcbBuffer  = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette