[openssh-commits] [openssh] branch master updated: upstream: flush stdout after writing "sftp>" prompt when not using
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Apr 30 16:17:29 AEST 2024
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new 14e2b16b upstream: flush stdout after writing "sftp>" prompt when not using
14e2b16b is described below
commit 14e2b16bc67ffcc188906f65008667e22f73d103
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Apr 30 06:16:55 2024 +0000
upstream: flush stdout after writing "sftp>" prompt when not using
editline.
From Alpine Linux via GHPR480
OpenBSD-Commit-ID: 80bdc7ffe0358dc090eb9b93e6dedb2b087b24cd
---
sftp.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sftp.c b/sftp.c
index 76ba4de3..c080fba5 100644
--- a/sftp.c
+++ b/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 at openbsd.org>
*
@@ -2301,8 +2301,10 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
break;
}
if (el == NULL) {
- if (interactive)
+ if (interactive) {
printf("sftp> ");
+ fflush(stdout);
+ }
if (fgets(cmd, sizeof(cmd), infile) == NULL) {
if (interactive)
printf("\n");
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list