mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 01:05:14 +02:00
upstream: flush stdout after writing "sftp>" prompt when not using
editline. From Alpine Linux via GHPR480 OpenBSD-Commit-ID: 80bdc7ffe0358dc090eb9b93e6dedb2b087b24cd
This commit is contained in:
parent
2e69a72405
commit
14e2b16bc6
6
sftp.c
6
sftp.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sftp.c,v 1.237 2024/02/01 02:37:33 djm Exp $ */
|
/* $OpenBSD: sftp.c,v 1.238 2024/04/30 06:16:55 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||||
*
|
*
|
||||||
@ -2301,8 +2301,10 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (el == NULL) {
|
if (el == NULL) {
|
||||||
if (interactive)
|
if (interactive) {
|
||||||
printf("sftp> ");
|
printf("sftp> ");
|
||||||
|
fflush(stdout);
|
||||||
|
}
|
||||||
if (fgets(cmd, sizeof(cmd), infile) == NULL) {
|
if (fgets(cmd, sizeof(cmd), infile) == NULL) {
|
||||||
if (interactive)
|
if (interactive)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user