[openssh-commits] [openssh] 01/05: upstream: disable stderr redirection before closing fds

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jun 7 05:54:38 AEST 2024


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit c0cb3b8c837761816a60a3cdb54062668df09652
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Thu Jun 6 19:50:01 2024 +0000

    upstream: disable stderr redirection before closing fds
    
    OpenBSD-Commit-ID: d42cb895ee4542098050367fc35321c9303f003a
---
 sshd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sshd.c b/sshd.c
index e9894d24..f8fb6942 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.606 2024/06/06 17:15:25 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.607 2024/06/06 19:50:01 djm Exp $ */
 /*
  * Copyright (c) 2000, 2001, 2002 Markus Friedl.  All rights reserved.
  * Copyright (c) 2002 Niels Provos.  All rights reserved.
@@ -1793,6 +1793,7 @@ main(int ac, char **av)
 			fatal("dup2 startup_p: %s", strerror(errno));
 		close(startup_pipe);
 	}
+	log_redirect_stderr_to(NULL);
 	closefrom(REEXEC_MIN_FREE_FD);
 
 	ssh_signal(SIGHUP, SIG_IGN); /* avoid reset to SIG_DFL */

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list