missing space character in ssh -G output broke the t-sshcfgparse
authordjm <djm@openbsd.org>
Thu, 16 Sep 2021 05:36:03 +0000 (05:36 +0000)
committerdjm <djm@openbsd.org>
Thu, 16 Sep 2021 05:36:03 +0000 (05:36 +0000)
regression test; spotted by anton@

usr.bin/ssh/readconf.c

index 62982fc..5324d4f 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.362 2021/09/15 06:56:01 djm Exp $ */
+/* $OpenBSD: readconf.c,v 1.363 2021/09/16 05:36:03 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -3380,7 +3380,7 @@ dump_client_config(Options *o, const char *host)
        /* oCanonicalizePermittedCNAMEs */
        printf("canonicalizePermittedcnames");
        if (o->num_permitted_cnames == 0)
-               printf("none");
+               printf(" none");
        for (i = 0; i < o->num_permitted_cnames; i++) {
                printf(" %s:%s", o->permitted_cnames[i].source_list,
                    o->permitted_cnames[i].target_list);