[vlc-devel] [PATCH] ftp: fix handling of NLST response
ilya.yanok at gmail.com
Wed Dec 2 19:37:23 CET 2020
Commit e1508444 broke the NLST response handling: getting
1xx response is what we actually expect, not a reason to fail.
This was reported as Android-specific bug:
two years ago and is still not fixed.
This is invisible is FTP server supports MSLT feature.
modules/access/ftp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index 553e5b5ddb..d1de89ac13 100644
@@ -1146,7 +1146,7 @@ static int ftp_StartStream( vlc_object_t
*p_access, access_sys_t *p_sys,
if( ftp_SendCommand( p_access, p_sys, "NLST" ) < 0 ||
- ftp_RecvCommandInit( p_access, p_sys ) == 1 )
+ ftp_RecvCommandInit( p_access, p_sys ) != 1 )
msg_Err( p_access, "cannot list directory contents" );
More information about the vlc-devel