- 時間撮記:
- 2019-3-1 下午02:44:31 (6 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r77508 r77531 221 221 * @param strPath Absolute path to directory on the guest (guest style path) to create. 222 222 * @param enmDirectoryCreateFlags Directory creation flags. 223 * @param uMode Directory mode to use for creation.223 * @param fMode Directory mode to use for creation. 224 224 * @param fFollowSymlinks Whether to follow symlinks on the guest or not. 225 225 * @param fCanExist Whether the directory to create is allowed to exist already. 226 226 */ 227 227 int GuestSessionTask::directoryCreateOnGuest(const com::Utf8Str &strPath, 228 DirectoryCreateFlag_T enmDirectoryCreateFlags, uint32_t uMode,228 DirectoryCreateFlag_T enmDirectoryCreateFlags, uint32_t fMode, 229 229 bool fFollowSymlinks, bool fCanExist) 230 230 { 231 LogFlowFunc(("strPath=%s, enmDirectoryCreateFlags=0x%x, uMode=%RU32, fFollowSymlinks=%RTbool, fCanExist=%RTbool\n",232 strPath.c_str(), enmDirectoryCreateFlags, uMode, fFollowSymlinks, fCanExist));231 LogFlowFunc(("strPath=%s, enmDirectoryCreateFlags=0x%x, fMode=%RU32, fFollowSymlinks=%RTbool, fCanExist=%RTbool\n", 232 strPath.c_str(), enmDirectoryCreateFlags, fMode, fFollowSymlinks, fCanExist)); 233 233 234 234 GuestFsObjData objData; int rcGuest; … … 253 253 case VERR_FILE_NOT_FOUND: 254 254 case VERR_PATH_NOT_FOUND: 255 rc = mSession->i_directoryCreate(strPath.c_str(), uMode, enmDirectoryCreateFlags, &rcGuest);255 rc = mSession->i_directoryCreate(strPath.c_str(), fMode, enmDirectoryCreateFlags, &rcGuest); 256 256 break; 257 257 default: … … 287 287 * @param strPath Absolute path to directory on the host (host style path) to create. 288 288 * @param fCreate Directory creation flags. 289 * @param uMode Directory mode to use for creation.289 * @param fMode Directory mode to use for creation. 290 290 * @param fCanExist Whether the directory to create is allowed to exist already. 291 291 */ 292 int GuestSessionTask::directoryCreateOnHost(const com::Utf8Str &strPath, uint32_t fCreate, uint32_t uMode, bool fCanExist)293 { 294 LogFlowFunc(("strPath=%s, fCreate=0x%x, uMode=%RU32, fCanExist=%RTbool\n", strPath.c_str(), fCreate, uMode, fCanExist));295 296 int rc = RTDirCreate(strPath.c_str(), uMode, fCreate);292 int GuestSessionTask::directoryCreateOnHost(const com::Utf8Str &strPath, uint32_t fCreate, uint32_t fMode, bool fCanExist) 293 { 294 LogFlowFunc(("strPath=%s, fCreate=0x%x, fMode=%RU32, fCanExist=%RTbool\n", strPath.c_str(), fCreate, fMode, fCanExist)); 295 296 int rc = RTDirCreate(strPath.c_str(), fMode, fCreate); 297 297 if (RT_FAILURE(rc)) 298 298 { … … 1555 1555 const bool fFollowSymlinks = true; /** @todo */ 1556 1556 const uint32_t fDirMode = 0700; /** @todo Play safe by default; implement ACLs. */ 1557 uint32_t fDirCreate = 0;1557 uint32_t fDirCreate = 0; 1558 1558 1559 1559 if (!fFollowSymlinks) … … 1566 1566 && pList->mSourceSpec.fDryRun == false) 1567 1567 { 1568 rc = directoryCreateOnHost(pList->mDstRootAbs, fDir Mode, fDirCreate, fCopyIntoExisting);1568 rc = directoryCreateOnHost(pList->mDstRootAbs, fDirCreate, fDirMode, fCopyIntoExisting); 1569 1569 if (RT_FAILURE(rc)) 1570 1570 break; … … 1595 1595 LogFlowFunc(("Directory '%s': %s -> %s\n", pEntry->strPath.c_str(), strSrcAbs.c_str(), strDstAbs.c_str())); 1596 1596 if (!pList->mSourceSpec.fDryRun) 1597 rc = directoryCreateOnHost(strDstAbs, fDir Mode, fDirCreate, fCopyIntoExisting);1597 rc = directoryCreateOnHost(strDstAbs, fDirCreate, fDirMode, fCopyIntoExisting); 1598 1598 break; 1599 1599
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器