mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
for sshd -T print 'permitopen any' vs. 'permitopen' for case of no
permitopen's; ok and input dtucker@
This commit is contained in:
parent
39d5ce731b
commit
3af73591de
@ -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
|
||||
@ -2763,6 +2763,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,
|
||||
|
Loading…
Reference in New Issue
Block a user