[openssh-commits] [openssh] branch master updated: upstream: don't append a gratuitous space to the end of subsystem
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Feb 20 15:11:02 AEDT 2024
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new ee6d932a upstream: don't append a gratuitous space to the end of subsystem
ee6d932a is described below
commit ee6d932acb532f80b11bb7cf161668c70ec8a117
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Feb 20 04:10:03 2024 +0000
upstream: don't append a gratuitous space to the end of subsystem
arguments; bz3667
OpenBSD-Commit-ID: e11023aeb3f30b77a674e37b8292c862926d5dc6
---
servconf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/servconf.c b/servconf.c
index 86c29793..fc873195 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.403 2023/10/11 22:42:26 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.404 2024/02/20 04:10:03 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -1945,7 +1945,7 @@ process_server_config_line_depth(ServerOptions *options, char *line,
arg = argv_assemble(1, &arg); /* quote command correctly */
arg2 = argv_assemble(ac, av); /* rest of command */
xasprintf(&options->subsystem_args[options->num_subsystems],
- "%s %s", arg, arg2);
+ "%s%s%s", arg, *arg2 == '\0' ? "" : " ", arg2);
free(arg2);
argv_consume(&ac);
options->num_subsystems++;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list