[PATCH] Add a ssh_config SetEnv option to override environment variables

Peter Stuge peter at stuge.se
Wed Aug 26 23:50:40 AEST 2015


Omar Sandoval wrote:
> +++ b/readconf.c
> @@ -1294,6 +1295,34 @@ parse_keytypes:
..
> +	case oSetEnv:
..
> +		value = 0;
> +		for (j = 0; j < options->num_send_env; j++) {
> +			if (match_pattern(arg, options->send_env[j])) {
> +				value = 1;
> +				break;
> +			}
> +		}

Should the above really use pattern matching to compare variable names?


//Peter


More information about the openssh-unix-dev mailing list