Skip to content

Commit 91adb0c

Browse files
committed
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
1 parent 9b054c0 commit 91adb0c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sftp.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,10 +2473,11 @@ main(int argc, char **argv)
24732473

24742474
WSHELPinitialize();
24752475

2476-
allocate_standard_descriptor(STDIN_FILENO);
2477-
allocate_standard_descriptor(STDOUT_FILENO);
2478-
allocate_standard_descriptor(STDERR_FILENO);
2479-
2476+
//allocate_standard_descriptor(STDIN_FILENO);
2477+
//allocate_standard_descriptor(STDOUT_FILENO);
2478+
//allocate_standard_descriptor(STDERR_FILENO);
2479+
setvbuf(stdout, NULL, _IONBF, 0);
2480+
24802481
LoadLibrary("libwindbg.dll");
24812482

24822483
//sfd_start = 3;

0 commit comments

Comments
 (0)