diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-11-11 16:40:22 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-11-11 16:40:22 +1100 |
commit | 22662e880f9c61f00908fe3dc27a6988ac2cccd0 (patch) | |
tree | d4f4349f57c72db5dc470feeb40a5250af49821d | |
parent | 49c31c42250e99af9170623094585d8851838a62 (diff) |
- stevesk@cvs.openbsd.org 2008/11/11 03:55:11
[channels.c]
for sshd -T print 'permitopen any' vs. 'permitopen' for case of no
permitopen's; ok and input dtucker@
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | channels.c | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -22,6 +22,10 @@ USE_AFS not referenced so remove #ifdef. fixes sshd -T not printing kerberosgetafstoken. ok dtucker@ (Id sync only, we still want the ifdef in portable) + - stevesk@cvs.openbsd.org 2008/11/11 03:55:11 + [channels.c] + for sshd -T print 'permitopen any' vs. 'permitopen' for case of no + permitopen's; ok and input dtucker@ 20081105 - OpenBSD CVS Sync @@ -4914,4 +4918,4 @@ OpenServer 6 and add osr5bigcrypt support so when someone migrates passwords between UnixWare and OpenServer they will still work. OK dtucker@ -$Id: ChangeLog,v 1.5138 2008/11/11 05:39:44 dtucker Exp $ +$Id: ChangeLog,v 1.5139 2008/11/11 05:40:22 dtucker Exp $ @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.287 2008/11/01 06:43:33 stevesk Exp $ */ +/* $OpenBSD: channels.c,v 1.288 2008/11/11 03:55:11 stevesk Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -2791,6 +2791,10 @@ channel_print_adm_permitted_opens(void) { int i; + if (num_adm_permitted_opens == 0) { + printf(" any"); + return; + } for (i = 0; i < num_adm_permitted_opens; i++) if (permitted_adm_opens[i].host_to_connect != NULL) printf(" %s:%d", permitted_adm_opens[i].host_to_connect, |