summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-10-23 16:31:10 +1100
committerDamien Miller <djm@mindrot.org>2013-10-23 16:31:10 +1100
commiteff5cada589f25793dbe63a76aba9da39837a148 (patch)
tree218f807742cec96c6d4d304a609fd63c146dc274
parent084bcd24e9fe874020e4df4e073e7408e1b17fb7 (diff)
- djm@cvs.openbsd.org 2013/10/23 03:05:19
[readconf.c ssh.c] comment
-rw-r--r--ChangeLog3
-rw-r--r--readconf.c3
-rw-r--r--ssh.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b0bdf5c6c..85cc3ec66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,9 @@
19 [readconf.c] 19 [readconf.c]
20 Hostname may have %h sequences that should be expanded prior to Match 20 Hostname may have %h sequences that should be expanded prior to Match
21 evaluation; spotted by Iain Morgan 21 evaluation; spotted by Iain Morgan
22 - djm@cvs.openbsd.org 2013/10/23 03:05:19
23 [readconf.c ssh.c]
24 comment
22 25
2320131018 2620131018
24 - (djm) OpenBSD CVS Sync 27 - (djm) OpenBSD CVS Sync
diff --git a/readconf.c b/readconf.c
index dad249007..f18666786 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.211 2013/10/23 03:03:07 djm Exp $ */ 1/* $OpenBSD: readconf.c,v 1.212 2013/10/23 03:05:19 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -470,6 +470,7 @@ match_cfg_line(Options *options, char **condition, struct passwd *pw,
470 port = options->port <= 0 ? default_ssh_port() : options->port; 470 port = options->port <= 0 ? default_ssh_port() : options->port;
471 ruser = options->user == NULL ? pw->pw_name : options->user; 471 ruser = options->user == NULL ? pw->pw_name : options->user;
472 if (options->hostname != NULL) { 472 if (options->hostname != NULL) {
473 /* NB. Please keep in sync with ssh.c:main() */
473 host = percent_expand(options->hostname, 474 host = percent_expand(options->hostname,
474 "h", host_arg, (char *)NULL); 475 "h", host_arg, (char *)NULL);
475 } else 476 } else
diff --git a/ssh.c b/ssh.c
index 835f4822a..11fdb309d 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.388 2013/10/17 00:46:49 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.389 2013/10/23 03:05:19 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -900,6 +900,7 @@ main(int ac, char **av)
900 900
901 /* preserve host name given on command line for %n expansion */ 901 /* preserve host name given on command line for %n expansion */
902 if (options.hostname != NULL) { 902 if (options.hostname != NULL) {
903 /* NB. Please keep in sync with readconf.c:match_cfg_line() */
903 cp = percent_expand(options.hostname, 904 cp = percent_expand(options.hostname,
904 "h", host, (char *)NULL); 905 "h", host, (char *)NULL);
905 free(host); 906 free(host);