]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: update setproctitle after re-exec; ok djm
authormarkus@openbsd.org <markus@openbsd.org>
Fri, 3 Jul 2020 10:12:26 +0000 (10:12 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 15 Jul 2020 05:06:44 +0000 (15:06 +1000)
OpenBSD-Commit-ID: bc92d122f9184ec2a9471ade754b80edd034ce8b

sshd.c

diff --git a/sshd.c b/sshd.c
index ba01b1da701ab96a4a1f7b31bba296cadebb4387..d9a159f6a77643b83fd4f2a3730adfc8e62ab817 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.559 2020/07/03 10:11:33 markus Exp $ */
+/* $OpenBSD: sshd.c,v 1.560 2020/07/03 10:12:26 markus Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1726,6 +1726,7 @@ main(int ac, char **av)
        if ((cfg = sshbuf_new()) == NULL)
                fatal("%s: sshbuf_new failed", __func__);
        if (rexeced_flag) {
+               setproctitle("%s", "[rexeced]");
                recv_rexec_state(REEXEC_CONFIG_PASS_FD, cfg);
                if (!debug_flag) {
                        startup_pipe = dup(REEXEC_STARTUP_PIPE_FD);