mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-04 20:15:09 +01:00
allow -l to LIST current directory
some clients, including Chrome, use LIST -l and expect to obtain a file listing. Fixes #64
This commit is contained in:
parent
2a7aa4955e
commit
fc95abd9f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user