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:
quamrulmina 2016-03-08 20:14:53 -06:00
parent 9b054c011e
commit 91adb0c99b

9
sftp.c
View File

@ -2473,10 +2473,11 @@ main(int argc, char **argv)
WSHELPinitialize(); WSHELPinitialize();
allocate_standard_descriptor(STDIN_FILENO); //allocate_standard_descriptor(STDIN_FILENO);
allocate_standard_descriptor(STDOUT_FILENO); //allocate_standard_descriptor(STDOUT_FILENO);
allocate_standard_descriptor(STDERR_FILENO); //allocate_standard_descriptor(STDERR_FILENO);
setvbuf(stdout, NULL, _IONBF, 0);
LoadLibrary("libwindbg.dll"); LoadLibrary("libwindbg.dll");
//sfd_start = 3; //sfd_start = 3;