From fc95abd9f2b84304edabdb423e64e91cab675de3 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 2 Feb 2017 19:04:50 +0000 Subject: [PATCH] allow -l to LIST current directory some clients, including Chrome, use LIST -l and expect to obtain a file listing. Fixes #64 --- source/ftp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/ftp.c b/source/ftp.c index 7badb03..8fc563c 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -2415,8 +2415,7 @@ ftp_xfer_dir(ftp_session_t *session, /* work around broken clients that think LIST -a is a thing */ if(workaround && mode == XFER_DIR_LIST) { - if(args[0] == '-' && args[1] == 'a') - { + if(args[0] == '-' && (args[1] == 'a' || args[1] == 'l')) { if(args[2] == 0) buffer = strdup(args+2); else