From b45d265c54aaff0da62f8966a79afc5a4f116e6e Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 27 Oct 2000 20:53:04 +0000 Subject: [PATCH] Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way. --- ext/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index b2a091a710..11966750bb 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1204,7 +1204,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path) fclose(tmpfp); - if (!ftp_getresp(ftp) || ftp->resp != 226) { + if (!ftp_getresp(ftp) || ftp->resp != 226 || ftp->resp != 250) { free(ret); return NULL; } -- 2.50.1