summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-02-24 10:44:25 +1100
committerDarren Tucker <dtucker@zip.com.au>2016-02-24 10:44:25 +1100
commitfd4e4f2416baa2e6565ea49d52aade296bad3e28 (patch)
tree102eafa0301fc663f05d0b59938914657a836881
parent99135c764fa250801da5ec3b8d06cbd0111caae8 (diff)
Skip PrintLastLog in config dump mode.
When DISABLE_LASTLOG is set, do not try to include PrintLastLog in the config dump since it'll be reported as UNKNOWN.
-rw-r--r--servconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/servconf.c b/servconf.c
index c0b6f6e65..b19d30e18 100644
--- a/servconf.c
+++ b/servconf.c
@@ -2273,7 +2273,9 @@ dump_config(ServerOptions *o)
2273 dump_cfg_fmtint(sChallengeResponseAuthentication, 2273 dump_cfg_fmtint(sChallengeResponseAuthentication,
2274 o->challenge_response_authentication); 2274 o->challenge_response_authentication);
2275 dump_cfg_fmtint(sPrintMotd, o->print_motd); 2275 dump_cfg_fmtint(sPrintMotd, o->print_motd);
2276#ifndef DISABLE_LASTLOG
2276 dump_cfg_fmtint(sPrintLastLog, o->print_lastlog); 2277 dump_cfg_fmtint(sPrintLastLog, o->print_lastlog);
2278#endif
2277 dump_cfg_fmtint(sX11Forwarding, o->x11_forwarding); 2279 dump_cfg_fmtint(sX11Forwarding, o->x11_forwarding);
2278 dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost); 2280 dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost);
2279 dump_cfg_fmtint(sPermitTTY, o->permit_tty); 2281 dump_cfg_fmtint(sPermitTTY, o->permit_tty);