[openssh-dev]: disable ProxyCommand from being used?
Markus Friedl
markus at openbsd.org
Fri Feb 8 21:01:11 EST 2002
yes, that's a good idea. it will also
make matching case-insensitive.
On Fri, Feb 08, 2002 at 11:18:11AM +0900, Shinichi Maruyama wrote:
> --- readconf.c.orig Tue Feb 5 10:26:35 2002
> +++ readconf.c Fri Feb 8 10:25:11 2002
> @@ -647,12 +647,17 @@
>
> case oHost:
> *activep = 0;
> - while ((arg = strdelim(&s)) != NULL && *arg != '\0')
> - if (match_pattern(host, arg)) {
> + while ((arg = strdelim(&s)) != NULL && *arg != '\0') {
> + int matched = match_hostname(host, arg, strlen(arg)) ;
> + if (matched == 1) {
> debug("Applying options for %.100s", arg);
> *activep = 1;
> break;
> + } else if (matched == -1) { /* negative match */
> + debug("Not applying options for %.100s", arg);
> + break;
> }
> + }
> /* Avoid garbage check below, as strdelim is done. */
> return 0;
>
> --
> Sinichi Maruyama <marya at st.jip.co.jp>
> Japan Information Processing Service,Co,Ltd.
> 2-4-24 Toyo, Koto-ku ,Tokyo, 135, Japan
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
More information about the openssh-unix-dev
mailing list