summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2024-06-06 19:50:02 +0000
committerDamien Miller <djm@cvs.openbsd.org>2024-06-06 19:50:02 +0000
commitb7bdfc4f4b1a0400c479cf16cf0059b3aa8159a6 (patch)
treea087e03509d917c8da71b1324d67e5f6cf6a27a1 /usr.bin
parente047bcf82daede069fe3f06d090f4f58f2d9015c (diff)
disable stderr redirection before closing fds
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 33e35284767..adc71cefe6a 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/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.
@@ -1697,6 +1697,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 */