mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-22 21:45:09 +02:00
Add local shell access feature in sftp.exe client
This was not implemented before in Win32. !takes to the windows shell and !command runs the command in Windows shell. exit brings the user back to sftp like in Linux/Unix shell.
This commit is contained in:
parent
98dc596200
commit
2cfb138bb8
12
sftp.c
12
sftp.c
@ -292,14 +292,12 @@ help(void)
|
||||
static void
|
||||
local_do_shell(const char *args)
|
||||
{
|
||||
#ifdef WIN32_FIXME
|
||||
#ifdef WIN32_FIXME
|
||||
|
||||
/*
|
||||
* Not implemented on native Win32.
|
||||
*/
|
||||
|
||||
fprintf(stderr, "Local shell is not implemented on Win32.\n");
|
||||
|
||||
if (!*args) {
|
||||
args = (char *) getenv("ComSpec"); // get name of Windows cmd shell
|
||||
}
|
||||
system(args); // execute the shell or cmd given
|
||||
#else
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user