Changeset 96617 in vbox
- Timestamp:
- Sep 6, 2022 8:31:42 PM (2 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r96407 r96617 3599 3599 HRESULT hrc; 3600 3600 if (source.enmType == FsObjType_Directory) 3601 {3602 3601 hrc = GuestSession::i_directoryCopyFlagFromStr(strFlags, &source.Type.Dir.fCopyFlags); 3603 }3604 3602 else if (source.enmType == FsObjType_File) 3605 3603 hrc = GuestSession::i_fileCopyFlagFromStr(strFlags, &source.Type.File.fCopyFlags); -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r96407 r96617 1339 1339 } 1340 1340 else if (RTFS_IS_FILE(objInfo.Attr.fMode)) 1341 {1342 1341 vrc = VERR_IS_A_FILE; 1343 }1344 1342 else if (RTFS_IS_SYMLINK(objInfo.Attr.fMode)) 1345 {1346 1343 vrc = VERR_IS_A_SYMLINK; 1347 }1348 1344 else 1349 1345 vrc = VERR_NOT_SUPPORTED; … … 1605 1601 const bool fFollowSymlinks = true; /** @todo */ 1606 1602 const uint32_t fDirMode = 0700; /** @todo Play safe by default; implement ACLs. */ 1607 uint32_tfDirCreate = 0;1603 uint32_t fDirCreate = 0; 1608 1604 1609 1605 if (!fFollowSymlinks) … … 1621 1617 } 1622 1618 1623 char szPath[RTPATH_MAX];1624 1625 1619 FsEntries::const_iterator itEntry = pList->mVecEntries.begin(); 1626 1620 while (itEntry != pList->mVecEntries.end()) … … 1636 1630 if (pList->mSourceSpec.enmType == FsObjType_Directory) 1637 1631 { 1632 char szPath[RTPATH_MAX]; 1633 1638 1634 /* Build the source path on the guest. */ 1639 1635 vrc = RTStrCopy(szPath, sizeof(szPath), pList->mSrcRootAbs.c_str()); … … 1744 1740 Utf8Str strErrorInfo; 1745 1741 1746 /* *1742 /* 1747 1743 * Note: We need to build up the file/directory here instead of GuestSessionTaskCopyTo::Run 1748 1744 * because the caller expects a ready-for-operation progress object on return. … … 1808 1804 { 1809 1805 if (itSrc->enmType == FsObjType_Directory) 1810 {1811 1806 vrc = pFsList->AddDirFromHost(strSrc); 1812 }1813 1807 else 1814 1808 vrc = pFsList->AddEntryFromHost(RTPathFilename(strSrc.c_str()), &srcFsObjInfo);
Note:
See TracChangeset
for help on using the changeset viewer.