From: simon Date: Sun, 3 Nov 2002 08:46:35 +0000 (+0000) Subject: Half of Lars Gunnarsson's iXplorer compatibility patch: the PSFTP X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/f55eceeddc68307909fab6cedf7bbfd8decb0f9f Half of Lars Gunnarsson's iXplorer compatibility patch: the PSFTP login prompt should be fflushed (presumably fgets fails to implicitly do this when stdin and stdout are redirected weirdly). git-svn-id: svn://svn.tartarus.org/sgt/putty@2186 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/psftp.c b/psftp.c index e5857321..93fa33f6 100644 --- a/psftp.c +++ b/psftp.c @@ -1769,6 +1769,7 @@ static int psftp_connect(char *userhost, char *user, int portnumber) } if (!cfg.username[0]) { printf("login as: "); + fflush(stdout); if (!fgets(cfg.username, sizeof(cfg.username), stdin)) { fprintf(stderr, "psftp: aborting\n"); cleanup_exit(1);