diff options
author | djm@openbsd.org <djm@openbsd.org> | 2024-06-06 21:50:01 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2024-06-06 21:52:50 +0200 |
commit | c0cb3b8c837761816a60a3cdb54062668df09652 (patch) | |
tree | 4872807c4277e20e2e1b90161686ad129fa45be3 | |
parent | upstream: Add a facility to sshd(8) to penalise particular (diff) | |
download | openssh-c0cb3b8c837761816a60a3cdb54062668df09652.tar.xz openssh-c0cb3b8c837761816a60a3cdb54062668df09652.zip |
upstream: disable stderr redirection before closing fds
OpenBSD-Commit-ID: d42cb895ee4542098050367fc35321c9303f003a
-rw-r--r-- | sshd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |