projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59adac1
)
Half of Lars Gunnarsson's iXplorer compatibility patch: the PSFTP
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 3 Nov 2002 08:46:35 +0000
(08:46 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 3 Nov 2002 08:46:35 +0000
(08:46 +0000)
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
psftp.c
patch
|
blob
|
blame
|
history
diff --git
a/psftp.c
b/psftp.c
index
e585732
..
93fa33f
100644
(file)
--- 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);