mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-20 12:34:45 +02:00
sftp.exe fixed to run within a ssh session
stdout buffer avoided so that printf("sftp>") prompts and other printf()s come through to the user right away
This commit is contained in:
parent
9b054c011e
commit
91adb0c99b
9
sftp.c
9
sftp.c
@ -2473,10 +2473,11 @@ main(int argc, char **argv)
|
||||
|
||||
WSHELPinitialize();
|
||||
|
||||
allocate_standard_descriptor(STDIN_FILENO);
|
||||
allocate_standard_descriptor(STDOUT_FILENO);
|
||||
allocate_standard_descriptor(STDERR_FILENO);
|
||||
|
||||
//allocate_standard_descriptor(STDIN_FILENO);
|
||||
//allocate_standard_descriptor(STDOUT_FILENO);
|
||||
//allocate_standard_descriptor(STDERR_FILENO);
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
|
||||
LoadLibrary("libwindbg.dll");
|
||||
|
||||
//sfd_start = 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user