VirtualBox

Changeset 82737 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 14, 2020 1:45:22 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/FTP: Made replies more compatible with clients which expect additional messages together with the codes. bugref:9646

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/ftp-server.cpp

    r82736 r82737  
    354354static int rtFtpServerSendReplyRc(PRTFTPSERVERCLIENT pClient, RTFTPSERVER_REPLY enmReply)
    355355{
     356    /* Note: If we don't supply any additional text, make sure to include an empty stub, as
     357     *       some clients expect this as part of their parsing code. */
    356358    char szReply[32];
    357     RTStrPrintf2(szReply, sizeof(szReply), "%RU32\r\n", enmReply);
     359    RTStrPrintf2(szReply, sizeof(szReply), "%RU32 -\r\n", enmReply);
    358360
    359361    LogFlowFunc(("Sending reply code %RU32\n", enmReply));
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