Bugzilla – Attachment 2542 Details for
Bug 2346
sshd -T doesn't write all configuration options in valid format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed git patch
patch2.patch (text/plain), 2.60 KB, created by
Jakub Jelen
on 2015-01-31 00:17:07 AEDT
(
hide
)
Description:
proposed git patch
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2015-01-31 00:17:07 AEDT
Size:
2.60 KB
patch
obsolete
>From d57edba545765e9faf3401342ec67043f09f2447 Mon Sep 17 00:00:00 2001 >From: "Jakub Jelen" <jjelen@redhat.com> >Date: Fri, 30 Jan 2015 13:58:28 +0000 >Subject: [PATCH] fix sshd -T output > > >--- > >diff --git a/servconf.c b/servconf.c >index b7f3294..4ef512f 100644 >--- a/servconf.c >+++ b/servconf.c >@@ -1974,6 +1974,8 @@ dump_cfg_strarray_oneline(ServerOpCodes code, u_int count, char **vals) > { > u_int i; > >+ if (count <= 0) >+ return; > printf("%s", lookup_opcode_name(code)); > for (i = 0; i < count; i++) > printf(" %s", vals[i]); >@@ -2011,7 +2011,7 @@ dump_config(ServerOptions *o) > > /* integer arguments */ > #ifdef USE_PAM >- dump_cfg_int(sUsePAM, o->use_pam); >+ dump_cfg_fmtint(sUsePAM, o->use_pam); > #endif > dump_cfg_int(sServerKeyBits, o->server_key_bits); > dump_cfg_int(sLoginGraceTime, o->login_grace_time); >@@ -2021,6 +2021,7 @@ dump_config(ServerOptions *o) > dump_cfg_int(sMaxSessions, o->max_sessions); > dump_cfg_int(sClientAliveInterval, o->client_alive_interval); > dump_cfg_int(sClientAliveCountMax, o->client_alive_count_max); >+ dump_cfg_int(sStreamLocalBindMask, o->fwd_opts.streamlocal_bind_mask); > > /* formatted integer arguments */ > dump_cfg_fmtint(sPermitRootLogin, o->permit_root_login); >@@ -2064,6 +2065,7 @@ dump_config(ServerOptions *o) > dump_cfg_fmtint(sGatewayPorts, o->fwd_opts.gateway_ports); > dump_cfg_fmtint(sUseDNS, o->use_dns); > dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding); >+ dump_cfg_fmtint(sAllowAgentForwarding, o->allow_agent_forwarding); > dump_cfg_fmtint(sAllowStreamLocalForwarding, o->allow_streamlocal_forwarding); > dump_cfg_fmtint(sUsePrivilegeSeparation, use_privsep); > >@@ -2080,7 +2082,8 @@ dump_config(ServerOptions *o) > dump_cfg_string(sRevokedKeys, o->revoked_keys_file); > dump_cfg_string(sAuthorizedPrincipalsFile, > o->authorized_principals_file); >- dump_cfg_string(sVersionAddendum, o->version_addendum); >+ dump_cfg_string(sVersionAddendum, *o->version_addendum == '\0' >+ ? "none" : o->version_addendum); > dump_cfg_string(sAuthorizedKeysCommand, o->authorized_keys_command); > dump_cfg_string(sAuthorizedKeysCommandUser, o->authorized_keys_command_user); > dump_cfg_string(sHostKeyAgent, o->host_key_agent); >@@ -2096,7 +2101,7 @@ dump_config(ServerOptions *o) > o->authorized_keys_files); > dump_cfg_strarray(sHostKeyFile, o->num_host_key_files, > o->host_key_files); >- dump_cfg_strarray(sHostKeyFile, o->num_host_cert_files, >+ dump_cfg_strarray(sHostCertificate, o->num_host_cert_files, > o->host_cert_files); > dump_cfg_strarray(sAllowUsers, o->num_allow_users, o->allow_users); > dump_cfg_strarray(sDenyUsers, o->num_deny_users, o->deny_users); >-- >2.1.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 2346
:
2541
| 2542