VirtualBox

Changeset 82842 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Jan 23, 2020 10:16:23 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135812
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

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