<div data-ntes="ntes_mail_body_root" style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><p dir="auto" style="box-sizing: border-box; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; margin-top: 0px !important;"><span style="font-family: Arial;">Hi Maintainers,</span></p><p dir="auto" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";"><span style="font-family: Arial;">ftpget tool use with get command like: "ftpget 192.168.0.123 /data/test.txt test.txt" will exit with error code 1 instead of 0.<br style="box-sizing: border-box;">I check the code flow in "ftp_line" function, it will enter "error_exit_raw" because "rc != must (must==226)".</span></p><p dir="auto" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";"><span style="font-family: Arial;">The ftpget needs to receive a 150 status code from the server before proceeding to receive actual data, then followed by get 226 status code before sending the "QUIT" command.<br style="box-sizing: border-box;">The implementation in BusyBox 1.35.0 (networking/ftpgetput.c, lines 233(ftp_receive) and 183(pump_data_and_QUIT)) follows this logic, allowing it to successfully send "QUIT" and exit without errors.</span></p><div><span style="color: rgb(31, 35, 40); font-family: Arial;">With this patch applied, the message like: "150 Opening BINARY mode data connection for test.txt (10 bytes)" will no longer be misinterpreted as an error. The program can then exit with code 0 instead of 1.</span></div><div><br></div><div>BTW, I also created Pull requests on GitHub.</div><div><br></div><div>Thanks.</div><div>Best regards</div><div>Hongsheng Peng</div></div>