Bugzilla – Attachment 3546 Details for
Bug 3343
Display host provided as argument with "ssh -G"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add original hostname to output of "ssh -G"
dump-originalhostname.patch (text/plain), 1.30 KB, created by
Vincent Bernat
on 2021-08-26 17:49:36 AEST
(
hide
)
Description:
Add original hostname to output of "ssh -G"
Filename:
MIME Type:
Creator:
Vincent Bernat
Created:
2021-08-26 17:49:36 AEST
Size:
1.30 KB
patch
obsolete
>--- openssh-8.4p1.orig/readconf.c >+++ openssh-8.4p1/readconf.c >@@ -2809,7 +2809,7 @@ dump_cfg_forwards(OpCodes code, u_int co > } > > void >-dump_client_config(Options *o, const char *host) >+dump_client_config(Options *o, const char *host, const char *host_arg) > { > int i, r; > char buf[8], *all_key; >@@ -2827,6 +2827,7 @@ dump_client_config(Options *o, const cha > free(all_key); > > /* Most interesting options first: user, host, port */ >+ printf("originalhostname %s\n", host_arg); > dump_cfg_string(oUser, o->user); > dump_cfg_string(oHostname, host); > dump_cfg_int(oPort, o->port); >--- openssh-8.4p1.orig/readconf.h >+++ openssh-8.4p1/readconf.h >@@ -221,7 +221,7 @@ int parse_jump(const char *, Options *, > int parse_ssh_uri(const char *, char **, char **, int *); > int default_ssh_port(void); > int option_clear_or_none(const char *); >-void dump_client_config(Options *o, const char *host); >+void dump_client_config(Options *o, const char *host, const char *host_arg); > > void add_local_forward(Options *, const struct Forward *); > void add_remote_forward(Options *, const struct Forward *); >--- openssh-8.4p1.orig/ssh.c >+++ openssh-8.4p1/ssh.c >@@ -1498,7 +1498,7 @@ main(int ac, char **av) > } > > if (config_test) { >- dump_client_config(&options, host); >+ dump_client_config(&options, host, host_arg); > exit(0); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3343
:
3546
|
3547