[openssh-dev]: disable ProxyCommand from being used?

Markus Friedl markus at openbsd.org
Thu Feb 14 10:29:31 EST 2002


On Fri, Feb 08, 2002 at 04:42:08PM +0900, Shun-ichi GOTO wrote:
> --- readconf.c	7 Nov 2001 01:18:31 -0000	1.1.1.2
> +++ readconf.c	8 Feb 2002 07:38:25 -0000
> @@ -647,12 +647,16 @@
>  
>  	case oHost:
>  		*activep = 0;
> -		while ((arg = strdelim(&s)) != NULL && *arg != '\0')
> -			if (match_pattern(host, arg)) {
> +		while ((arg = strdelim(&s)) != NULL && *arg != '\0') {
> +			int match = match_hostname(host, arg, strlen(arg));
> +			if (*arg=='!')
> +				match = !match;
> +			if (match) {
>  				debug("Applying options for %.100s", arg);
>  				*activep = 1;
>  				break;
>  			}
> +		}
>  		/* Avoid garbage check below, as strdelim is done. */
>  		return 0;

I'm not sure. This is not consistent with the how !pattern works
in other parts of openssh...



More information about the openssh-unix-dev mailing list