VirtualBox

忽略:
時間撮記:
2020-1-23 上午10:16:23 (5 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
135812
訊息:

IPRT/FTP: Retrieving files in sub directories also works now. bugref:9646

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/tools/RTFTPServer.cpp

    r82841 r82842  
    212212    Assert(pData->cbUser == sizeof(FTPSERVERDATA));
    213213
    214     return RTFileOpen(&pThis->hFile, pcszPath, fMode);
     214    char *pszPathAbs = NULL;
     215    if (RTStrAPrintf(&pszPathAbs, "%s/%s", pThis->szPathRootAbs, pcszPath) <= 0)
     216        return VERR_NO_MEMORY;
     217
     218    int rc = RTFileOpen(&pThis->hFile, pszPathAbs, fMode);
     219
     220    RTStrFree(pszPathAbs);
     221
     222    return rc;
    215223}
    216224
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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