mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
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). [originally from svn r2186]
This commit is contained in:
parent
d54e79bde6
commit
c5114a92a6
1
psftp.c
1
psftp.c
@ -1769,6 +1769,7 @@ static int psftp_connect(char *userhost, char *user, int portnumber)
|
|||||||
}
|
}
|
||||||
if (!cfg.username[0]) {
|
if (!cfg.username[0]) {
|
||||||
printf("login as: ");
|
printf("login as: ");
|
||||||
|
fflush(stdout);
|
||||||
if (!fgets(cfg.username, sizeof(cfg.username), stdin)) {
|
if (!fgets(cfg.username, sizeof(cfg.username), stdin)) {
|
||||||
fprintf(stderr, "psftp: aborting\n");
|
fprintf(stderr, "psftp: aborting\n");
|
||||||
cleanup_exit(1);
|
cleanup_exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user