mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-27 07:54:50 +02:00
sftp client lls did not work in Windows if cygwin or linux ls not available
Now lls is mapped to "dir" in Windows port which is available in Windows shell (cmd or powershell ). Cygwin or Linux emulation tools which has "ls" are not needed.
This commit is contained in:
parent
7181f2b3d3
commit
1f825c7e30
4
sftp.c
4
sftp.c
@ -346,6 +346,10 @@ local_do_shell(const char *args)
|
|||||||
static void
|
static void
|
||||||
local_do_ls(const char *args)
|
local_do_ls(const char *args)
|
||||||
{
|
{
|
||||||
|
#ifdef WIN32_FIXME
|
||||||
|
#undef _PATH_LS
|
||||||
|
#define _PATH_LS "dir"
|
||||||
|
#endif
|
||||||
if (!args || !*args)
|
if (!args || !*args)
|
||||||
local_do_shell(_PATH_LS);
|
local_do_shell(_PATH_LS);
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user