VirtualBox

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


Ignore:
Timestamp:
Nov 11, 2010 2:26:08 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67658
Message:

shfl: Replaced RTFSOBJINFO and RTFSPROPERTIES with shared folder specific versions. IPRT structures like this should never have been exposed to the guest.

Location:
trunk/src/VBox/HostServices/SharedFolders
Files:
2 edited

Legend:

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

    r33540 r33994  
    6060    STRUCT(SHFLDIRINFO, 128);
    6161    STRUCT(SHFLVOLINFO, 40);
     62    STRUCT(SHFLFSOBJATTR, 44);
     63    STRUCT(SHFLFSOBJINFO, 92);
    6264#ifdef VBOX_WITH_64_BITS_GUESTS
    6365/* The size of the guest structures depends on the current architecture bit count (ARCH_BITS)
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r33595 r33994  
    893893                info.Attr.fMode |= 0111;
    894894#endif
    895                 pParms->Info = info;
     895                vbfsCopyFsObjInfoFromIprt(&pParms->Info, &info);
    896896            }
    897897            pParms->Result = SHFL_FILE_EXISTS;
     
    969969            info.Attr.fMode |= 0111;
    970970#endif
    971             pParms->Info = info;
     971            vbfsCopyFsObjInfoFromIprt(&pParms->Info, &info);
    972972        }
    973973    }
     
    10661066                if (RT_SUCCESS(rc))
    10671067                {
    1068                     pParms->Info = info;
     1068                    vbfsCopyFsObjInfoFromIprt(&pParms->Info, &info);
    10691069                }
    10701070            }
     
    11711171            info.Attr.fMode |= 0111;
    11721172#endif
    1173             pParms->Info = info;
     1173            vbfsCopyFsObjInfoFromIprt(&pParms->Info, &info);
    11741174            pParms->Result = SHFL_FILE_EXISTS;
    11751175            break;
     
    15731573        pDirEntry->Info.Attr.fMode |= 0111;
    15741574#endif
    1575         pSFDEntry->Info = pDirEntry->Info;
     1575        vbfsCopyFsObjInfoFromIprt(&pSFDEntry->Info, &pDirEntry->Info);
    15761576        pSFDEntry->cucShortName = 0;
    15771577
     
    18911891            goto exit;
    18921892
    1893         rc = RTFsQueryProperties(pszFullPath, &pSFDEntry->fsProperties);
     1893        RTFSPROPERTIES FsProperties;
     1894        rc = RTFsQueryProperties(pszFullPath, &FsProperties);
    18941895        if (rc != VINF_SUCCESS)
    18951896            goto exit;
     1897        vbfsCopyFsPropertiesFromIprt(&pSFDEntry->fsProperties, &FsProperties);
    18961898
    18971899        *pcbBuffer = sizeof(SHFLVOLINFO);
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