[openssh-commits] [openssh] 01/07: upstream: suppress "Connection closed" message when in quiet mode
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jan 6 16:23:26 AEDT 2023
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 8c7c69d32375d2f3ce9da0109c9bffc560842316
Author: djm at openbsd.org <djm at openbsd.org>
Date: Thu Jan 5 05:49:13 2023 +0000
upstream: suppress "Connection closed" message when in quiet mode
OpenBSD-Commit-ID: 8a3ab7176764da55f60bfacfeae9b82d84e3908f
---
sftp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sftp.c b/sftp.c
index 8a57c1a0..b3616c15 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.224 2022/12/16 06:52:48 jmc Exp $ */
+/* $OpenBSD: sftp.c,v 1.225 2023/01/05 05:49:13 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm at openbsd.org>
*
@@ -275,7 +275,8 @@ sigchld_handler(int sig)
while ((pid = waitpid(sshpid, NULL, WNOHANG)) == -1 && errno == EINTR)
continue;
if (pid == sshpid) {
- (void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
+ if (!quiet)
+ (void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
sshpid = -1;
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list